Omron SYSMAC CS1G Operation Manual page 115

Motion control unit
Table of Contents

Advertisement

Variables
Variable Type and
Address Range
Note
Data Access Type
Type
Bit type
Integer type
Double-length integer
type
Real number type
Precautions When
Accessing the Same
Address with Different
Access Type
Note
92
V: Variable type
T: Data access type
hhhh: Addresses of Data (in hexadecimal)
b: Bit number for bit-type data access (in hexadecimal)
Example)
#PL0000 = 10000;
MOVE_[J01]#PL0000;
Use 4-digit hexadecimal notation for data addresses.
Data addresses indicate the first address of integer data regardless of the
access type.
Type
Position Data
System variables
Global general variables
Input variables
Output variables
Task variables
Task variables can use 128 words in each task.
There are four data access types as shown in the following table.
Data Access Type Table
Notation
Numerical range
B
1 (ON), 0 (OFF)
−32768 to +32767
W
(8000 Hex to 7FFF Hex)
−2147483648 to +2147483647
L
(80000000 Hex to 7FFFFFFF Hex)
±(1.175E-38 to 3.402E+38), 0
F
The variables at the same address share the same physical space.
The beginning of the
global general vari-
able
Odd-number addresses cannot be specified with Double-length integer type
or Real number type. Make sure to specify even-number addresses.
Followings are the examples:
• (1) ML0000 = 1234 --- Write 1234 in the Double-length integer type.
• (2) MF0000 = 1234 --- Write 1234 in the real number type.
Notation
PLhhhh
S*hhhh
M*hhhh
I*hhhh
O*hhhh
D*hhhh
Signed word data (16-bit)
Signed double-length data (32-bit)
Single-precision floating decimal point
(32-bit)
Bit type
Integer type
MB0000b
MW0000
MB0001b
MW0001
MB0002b
MW0002
MB0003b
MW0003
Section 4-3
Address range
PL0000 - PL27FF
SW0000 - SW07FF
MW0000 - MW1FFF
IW0000 - IW0FFF
OW0000 - OW0FFF
DW0000 - DW007F
Remark
Double-
Real number
length
type
integer type
ML0000
MF0000
ML0002
MF0002

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs1w-mch71Sysmac cs seriesSysmac cs1h

Table of Contents