Elements of SFC
Section 2-3
51
Boolean Action (Bit)
Boolean Variable
A transition condition can be defined using a Boolean variable name.
Example: In the case of “bFlag”, the condition is met when “bFlag” is ON.
Actual Address (Bit)
A transition’s condition can be defined using an actual address (bit).
ST Expression
A transition condition can be defined using an ST expression.
Formats for ST-programmed condition equations are listed below:
Formats for Boolean Variables in Defining Transitions with ST Expressions
Operator
Name
Operator
Example
Details
Parenthesis
()
(a & b) OR c
Condition met if both “a” and “b” are ON, or if
“c” is ON
Complement
NOT
NOT bFlag
Condition met if bFlag is OFF
AND
AND, &
a & b
Condition met if both “a” and “b” are ON
Exclusive OR
XOR
a XOR b
Condition met if “a” differs from “b”
OR
OR
a OR b
Condition met if “a” or “b” is ON
Equality
=
a = b
Condition met if “a” and “b” are the same
Formats for INT, DINT, LINT, UINT, UDINT, ULINT, CHANNEL, REAL, LREAL, WORD,
DWORD, LWORD, UINT_BCD, UDINT_BCD, and ULINT_BCD Variables in Defining
Transitions with ST Expressions
Operator
Name
Operator
Example
Details
Parenthesis
()
(nValue = 10) &
a
Condition met if nValue is 10 and “a” is ON
Comparison
<, >, <=, >=
nValue >= 10
Condition met if nValue is 10 or greater
Equality
=
nValue = 10
Condition met if nValue is 10
Inequality
<>
nValue <> 10
Condition met if nValue is not 10
Transition Program
Program names may be used as transition conditions.
A transition program can be coded using either Ladder or ST as the language.
In CX-Programmer, a transition condition is met when the Boolean variable with the
same name as the transition program is switched to “ON”.
PRG
Any name
PRG
a
Condition met if “a” is OFF
Transition Program Name
Example 1: “b” bit for “a”
Содержание SYSMAC CX-Programmer 8.1
Страница 1: ...Operation Manual SFC Programming SYSMAC WS02 CXPC1 V8 CX Programmer Ver 8 1 Cat No W469 E1 04...
Страница 2: ...ii CX Programmer Ver 8 1 WS02 CXPC1 V8 Operation Manual SFC Programming Revised February 2009...
Страница 16: ......
Страница 56: ...Precautions When Creating SFC Programs Section 1 5 40...
Страница 117: ...Monitoring Section 4 5 101 For details refer to 3 2 3 Adding an Action to a Step or to the Initial Step...
Страница 118: ...Monitoring Section 4 5 102...
Страница 150: ...Index 134...
Страница 152: ...Revision History 136...
Страница 153: ......
Страница 154: ......