EasyManua.ls Logo

Ghisalba VFD-E Series - Page 253

Default Icon
268 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix D How to Use PLC Function
_
VFD-E Series
D-40 Revision August 2006, 01EE, SW--PW V1.03/CTL V2.03
Mnemonic Function
END Program End
Operand
None
Explanations:
It needs to add the END command at the end of ladder diagram program or command program. PLC
will scan from address o to END command, after executing it will return to address 0 to scan again.
API Mnemonic Operands Function
10 CMP P S
1
, S
2
, D Compare
Bit Devices Word devices Program Steps
Type
OP
X Y M K H KnX KnY KnM T C D
S
1
* * * * * * * *
S
2
* * * * * * * *
D * *
CMP, CMPP: 7 steps
DCMP, DCMPP: 13 steps
Operands:
S
1
: First comparison value S
2
: Second comparison value D: Comparison result
Explanations:
1. Operand D occupies 3 continuous devices.
2. Refer to each model specification for usage range.
3. The contents of the comparison source S
1
and S
2
are compared and D denotes the
compare result.
4. Two comparison values are compared algebraically and this function compares the two
values that are considered binary values. If b15=1 in 16-bit command, the comparison will
regard the value as the negative of the binary value.
Program Example:
1. If D is set to Y0, then Y0, Y1, Y2 will work as the program example as below.
2. When X10=On, CMP command is driven and one of Y0, Y1, Y2 is On. When X10=Off,
CMP command is not driven and Y0, Y1, Y2 remain in the previous status.
3. The comparison result of 싫, 싪, 실 commands can be got by the parallel connection of
Y0~Y2.