Data Formats - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

General Instruction Characteristics
1-1-6

Data Formats

Name
Unsigned
15 14 13 12 11 10
binary
data
15
Binary
2
Decimal
32768
Hexa-
3
2
decimal
Signed
15 14 13 12 11 10 9
binary
data
15
2
Binary
Decimal
-32768
3
Hexa-
2
decimal
Classification
Block programming
instructions
Text string processing
instructions
The following ladder programming examples show how the index registers are
treated.
Example 1
Ladder Program:
LD P_Off
OUT, IR0+
Operation: When the PLC memory address 000013 is stored in IR0.
The input condition is OFF (P_Off is the Always OFF Flag), so the OUT
instruction sets 000013, which is indirectly addressed by IR0, to OFF. The
OUT instruction is executed, so IR0 is incremented. As a result, the PLC
memory address 000014, which was incremented by +1 in the IR0, is stored.
Therefore, in the following cycle the OUT instruction turns OFF 000014.
Example 2
Ladder Program:
LD P_Off
SET, IR0+
Operation: When the PLC memory address 000013 is stored in IR0.
The input condition is OFF (P_Off is the Always OFF Flag), so the SET
instruction is not executed. Therefore, IR0 is not incremented and the value
stored in IR0 remains PLC memory address 000013.
The following table shows the data formats that can be used in CS/CJ-series
PLCs.
Format
9
8
14
13
12
11
10
9
2
2
2
2
2
2
2
16384 8192 4096 2048 1024
512 256 128
2
1
0
3
2
1
2
2
2
2
2
2
2
8
14
13
12
11
10
9
2
2
2
2
2
2
2
16384 8192 4096 2048 1024
512 256 128
2
1
0
3
2
1
2
2
2
2
2
2
2
Sign bit
0: Positive
1: Negative
BPPS(811), BPRS(812), EXIT(806), EXIT(806) NOT,
IF(802), IF(802) NOT, WAIT(805), WAIT(805) NOT,
TIMW(813)/TIMWX(816), CNTW(814)/CNTWX(818),
TMHW(815)/TMHWX(817), LEND(810), LEND(810) NOT
STRING COMPARISON (LD, AND, OR = $, etc. (function
codes: 670 to 675))
7
6
5
4
3
2
8
7
6
5
4
3
2
2
2
2
2
2
2
64
32
16
8
4
0
3
2
1
0
3
2
2
2
2
2
2
2
7
6
5
4
3
2
8
7
6
5
4
3
2
2
2
2
2
2
2
64
32
16
8
4
0
3
2
1
0
3
2
2
2
2
2
2
2
Section 1-1
Instructions
Decimal
range
0 to
1
0
65,535
1
0
2
2
2
1
1
0
2
2
–32,768
1
0
to
+32,767
1
0
2
2
2
1
1
0
2
2
Hexadecimal
range
0000 to FFFF
8000 to 7FFF
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents