24.01.2015 Views

PLC Programming

  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4 - The Individual Components<br />

The command for forcing a variable, which means that it will be entered into the forcelist can be found<br />

at the following places:<br />

• Command 'Force Values' in the menu 'Online'.<br />

• Button 'Force Values' in the dialog 'Editing the writelist and the forcelist'.<br />

Note:<br />

In the sequential function chart language, the individual values from which a transition expression is<br />

assembled cannot be changed with 'Force values'. This is due to the fact that in monitoring the 'Total<br />

value' of the expression, not the values of the individual variables are displayed (e.g. "a AND b" is<br />

only displayed as TRUE if both variables actually have the value TRUE).<br />

In FBD, on the other hand, only the first variable in an expression, used for example as input to a<br />

function block, is monitored. Thus a 'Force values' command is only possible for this variable.<br />

'Online' 'Release force'<br />

Shortcut: +<br />

This command ends the forcing of variable values in the controller. The variable values change again<br />

in the normal way.<br />

Forced variables can be recognized in Monitoring by the red color in which their values are displayed.<br />

You can delete the whole forcelist, but you can also mark single variables for which the forcing should<br />

be released.<br />

To delete the whole forcelist, which means to release force for all variables, choose one of the<br />

following ways:<br />

• Command 'Release Force' in menu 'Online'.<br />

• Button 'Release Force' in dialog 'Editing the writelist and the forcelist'<br />

• Delete the whole forcelist using the command 'Release Force' in the dialog 'Remove Write-<br />

/Forcelist'. This dialog opens if you choose the command 'Release Force' while also a writelist<br />

exists.<br />

To release force only for single variables you have to mark these variable first. Do this in one ways<br />

described in the following. After that the chosen variables are marked with an turquoise extension<br />

:<br />

• A double mouse click on a line, in which a non boolean variable is declared, opens the dialog<br />

'Write variable '. Press button .<br />

• Repeat double mouse clicks on a line in which a boolean variable is declared to toggle to the<br />

display at the end of the line.<br />

• In the menu 'Online' open the Write/Force-Dialog and delete the value in the edit field of the<br />

column 'Forced value'.<br />

When for all desired variables the setting "" is shown in the declaration window,<br />

choose the command 'Force values' to transfer the modifications of the forcelist to the program.<br />

If the current writelist (see 'Online' 'Write Values') is not empty while you execute the command<br />

'Release Force', the dialog 'Remove Write-/Forcelist' will be opened. There the user has to decide<br />

whether he just wants to Release Force or additionally wants to Remove the writelist or if he wants<br />

to remove both lists.<br />

CoDeSys V2.3 4-57

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!