
Chapter 9 Functions
9-184
9.7.4 Write/Read Variable Data
Parameter, operation data, CAM data can be read by “Read Variable Data” command and written by “Write
Variable Data” command directly.
(1) Read Variable Data
(a) You read data you want by designating module internal memory address of parameter, operation data,
CAM data directly.
(b) R
eads data as many as “Block size” starting position set in “Read address” with WORD unit to CPU
among parameter, operation data, CAM data. In case “CNT” is higher than 2, reads blocks with interval of
“Block offset” starting “Read address” as many as “CNT”-1.
(c) Max. data size (block size x No. of block) you can read with one command is 128 WORD
(d)
“Read Variable Data” command can‟t be executed in operation.
(e)
Auxiliary data setting of “Read Variable Data” command
Item
Setting value
Description
Read address
0 ~73769
Sets head address of Read Data
Block offset
0 ~73769
Sets offset between blocks of Read Data
Block size
1 ~ 128
Sets size of block
No. of block
1 ~ 128
Sets No. of Read Block
(f) Restriction
In the following case, error occurs and can‟t execute “Read Variable Data” command
■ Data setting error (Error code: 711)
▪ Read data size (Block size x No. of block) is 0 or higher than 128 WORD.
▪ Read data address [Read a {block offset x (No. of block -1)} + Block size is higher than last
address value (73768)
Remark
If you execute “Read Variable Data” command in XGK PLC, Read data from positioning module is saved in
common area. To save in device for using in PLC program, use GETM command [Read address: 0, data
size: Read data size (DWORD)]
In XGI/XGR PLC, Read data is saved in register set in Function Block automatically.
Block 1
Block 2
Block n
Block 1
Block 2
Block n
Data address
Block size
Block offset
No. of block
••
•
•
•
•
Module internal memory
Data common area
Axis 1 operation data
Common parameter
•
•
•
Axis 4 operation data
CAM data
Module internal memory address and position
0
73769
Operation parameter
128 word
Содержание XBF-PN04B
Страница 1: ...Programmable Logic Controller Positioning Module EtherCAT XGB Series XBF PN04B XBF PN08B ...
Страница 626: ...Chapter 9 Functions BPS37 setup RS232 and PC connection BPS37 option board LED 9 193 ...
Страница 628: ...Chapter 9 Functions c Execute BPS37 set up program and enter the setting values as follows 9 195 ...
Страница 796: ...Appendix3 Dimension A3 1 Appendix 3 Dimension Appendix 3 1 Dimension of XBF PN04B PN08B ...