A
A-1 Channel/Relay Numbers
SYSMAC CP1L Getting Started Guide
97
Ap
pend
ix
z
Channel Data Notation
Channel data is represented by 4 hexadecimal digits, derived from 16 binary digits,
representing the ON/OFF state of the 16 bits.
In other words, for each 4 bits, the sum of ON bits are calculated and expressed as
a single digit.
The above channel will be expressed as "0F7C (Hex)".
z
Constants Notation
Constants used in CP1L instructions are represented as follows.
z
Instruction Execution Conditions
There are 2 types of instructions: cyclic instructions, and differentiated instructions.
• Cyclic Instructions
The instruction is executed on each cycle, for as long as the execution condition
is ON.
Example
• Differentiated Instructions
The instruction is executed only once (i.e. on 1 cycle only) when the execution
condition turns ON.
The instruction name is prefixed with an "@".
Example
Some instructions cannot be specified as a differentiated instruction (with the "@"
prefix). If such is the case, use the UP(521)/DOWN(522) or
DIFU(013)(differentiated UP)/DIFD(014)(differentiated DOWN) instructions.
MSB
(Most Significant Bit)
LSB
(Least Significant Bit)
Bit
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Bit value
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
2
3
2
2
2
1
2
0
Content
(1=ON,
0=OFF)
0
0
0
0
1
1
1
1
0
1
1
1
1
1
0
0
Digit value
0
F
7
C
Notation
Content/Purpose
#0000 to 9999 (BCD)
Timer/counter values, BCD arithmetic instruction, etc.
#0000 to FFFF (Hex)
Comparison data for comparison instructions, transfer data,
BIN arithmetic instructions, etc.
&0 to 65535
Unsigned decimal notation
(Available in certain special instructions only. Can be loaded
into CX-Programmer by converting to and from hex digits.)
MOV (021)
H010
D00010
W00000
On each cycle for which work area W00000 is
ON, data in holding area H010CH is transferred
to DM D00010.
@MOV (021)
H020
D00020
W00001
When work area W00001 switches from OFF to
ON, data in holding area H020CH is transferred
to DM D00020.
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 97 Montag, 15. September 2008 11:15 11