663
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Data Control Instructions
3
ZONE
ZONE
Applicable Program Areas
Operands
C: First Limit Word
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
DEAD ZONE CONTROL ZONE @ZONE 682
Adds the specified bias to input data and outputs
the result.
Symbol
ZONE
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description Data type Size
S Input word INT 1
C First limit word UDINT 2
D Output word UINT 1
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
S
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---C
---
---
D OK
Name Label Operation
Error Flag ER • ON if the upper limit is less than the lower limit.
• OFF in all other cases.
Greater Than Flag > • ON if the input data (S) is greater than the upper limit.
• OFF in all other cases.
Equals Flag = • ON if the result is 0.
• OFF in all other cases.
Less Than Flag < • ON if the input data (S) is less than the lower limit.
• OFF in all other cases.
Negative Flag N • ON if the leftmost bit of the result is “1.”
• OFF in all other cases.
S: Input word
C: First limit word
D: Output word
ZONE(682)
S
C
D
C
0
15
Negative bias
C+1
0
15
Positive bias