Omron CS1W-MCH71 Operation Manual page 151

Sysmac cs/cj-series
Hide thumbs Also See for CS1W-MCH71:
Table of Contents

Advertisement

Variables
Name
Variables exclusively for tasks
Task variables
Can be used only in each task, and are used
as workspace, etc. during operations.
Note
Rules for Writing
Variables
Variable Type and
Address Range
Note
Data Access Type
Type
Bit type
Integer type
Double-length integer
type
Real number type
106
Purpose
(1) For Position Data, see 4-4 Position Data (Page 107).
(2) For System variables, see 4-5 System Variables (Page 111).
(3) For Input variables and Output variables, see 4-6 I/O Variables (Page
160).
(4) CAM Data will not be treated as a variable.
Use the following format to write variables.
Put # in front of variables.
#
V
T
hhhh
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.
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
Size
Backup to
FLASH ROM
128 words × 8
NO
tasks (2048
byte)
[b]
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)
Section 4-3
R/W
R/W
Address range
PL0000 - PL27FF
SW0000 - SW07FF
MW0000 - MW1FFF
IW0000 - IW0FFF
OW0000 - OW0FFF
DW0000 - DW007F
Remark

Advertisement

Table of Contents

Troubleshooting

loading

This manual is also suitable for:

Cj1w-mch71

Table of Contents