Introduction
Contacts can be placed in any free cell except cells directly on the right power rail.
If a contact is placed in a cell that was previously occupied by a contact, coil, a Boolean link or a label, the cell contents are replaced by the new contact.
If a contact is placed in a cell that is already occupied by another object (e.g. FFBs), an error message is returned.
The following are permitted as actual parameters for contacts:
Boolean variables
Boolean literals (
0
,1
,FALSE
,TRUE
)Boolean addresses (topological addresses or symbolic addresses)
ST expressions that return a Boolean result (e.g.
VarA > VarB
)ST expressions as formal parameters on contacts are an extension of IEC 61131-3 and must be explicitly enabled via the
by activating the check box.
Automatically Assign a Variable
If via
the check box is activated, then the corresponding properties dialog is automatically opened when an object is placed. The procedures explained here are used when the check box is deactivated.Placing Contacts
Step |
Action |
---|---|
1 |
Select the desired contact, see also Selecting Contacts. |
2 |
Click the target cell in the LL984 section. or Use the keys to move the gray field to the target position, and press .Result: The selected contact is inserted. |
3 |
To place further contacts of the same type:
|
Assigning Actual Parameters
Step |
Action |
---|---|
1 |
Open the properties dialog for the contact. Result: The contacts properties dialog is opened. Example: ![]() |
2 |
You have the following options to enter the actual parameters:
|
3 |
Confirm the selected variable with .Result:
|
4 |
If you do not want to assign the
variable an address or comment, confirm using Result: The variable is declared and enabled in the section. A syntax and semantics check is performed and the procedure ends here. Example: ![]() |
5 |
If you do want to assign the variable
an address and/or comment, use the ![]() |
6 |
Confirm with Result: The variable is declared and enabled in the section. A syntax and semantics check is performed immediately after the statement is entered. Example: ![]() |
Usage of ST Expressions
To enter ST expressions for contacts the same rules apply as for entering ST expressions for FFB pins.