Download AD51H-BASIC Programming Manual (Command)

Transcript
11 INSTRUCTIONS AND FUNCTIONS
Processing Code 1
MELSEC-Q
Reading device memory data
Control table format definition
Element position
Format 1
Format 2
%(0)
•••••••
Item
Description
Station number
Specify the station number of the PLC.
%(0)
Control table
Specify a control table of format 2.
%(1)
Network number
Specify the network number.
%(2)
Station number
Specify the station number of the PLC.
%(3)
Detailed error code
Detailed error codes are stored here.
%(1)
%(4)
Processing code
Specify the processing code.
%(2)
%(5)
Processing unit
Specify the device processing unit.
%(3)
%(6)
Device code
Specify the device code.
%(4)
%(7)
Device number
Specify the device number.
%(5)
%(8)
Number of points
Specify the number of points to be read.
• It is possible to read data of device memory other than extension file registers of
the PLC CPU using this code.
• Specify the following data for <control table>.
Format 1 control table
11 - 155
%(0)
••••••
%(1)
••••••
%(2)
••••••
%(3)
••••••
%(4)
••••••
%(5)
••••••
Specify the station number of the PLC CPU from which
data is to be read.
See Section 4.2.2 for the allowable specification range.
Processing code
• Specify 1.
Specify the device processing unit.
• When reading in bit units • • • • • 1
• When reading in word units • • • 2
Always specify "2" when reading from word devices.
Specify the device using the defined code.
See Section 4.2.5 for the code numbers.
Specify the device number of the device specified in %(3).
See Section 4.2.5 for the allowable specification range.
Note, however, that values other than 0 or multiples of 16
cannot be specified for the device number when reading
from bit devices in word units.
Specify the number of points of device memory to be read,
including the device specified in %(3) and %(4).
The allowable specification range is as follows:
11 - 155