11 - 170 11 - 170
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
PCRD
Instruction
PC ReaD
• Reads various data from the PLC CPU.
PCRD <control table> , <storage area for data read>
control table
• • • •
Specify the type of data to be read from the PLC
CPU.
Syntax
storage area for data read
• • • •
Specify the variable in which data read from the PLC
CPU is stored.
Examples
PCRD A%( ), B%( )
• • • •
Reads the type of data specified by the integer array
A% from the PLC CPU and stores it in the integer
variable B%.
Description
• The PCRD instruction reads various data from the PLC CPU.
• The processing to be performed is specified by the processing code in the control table.
The following processing can be performed.
Processing code
Description of the processing
A series
QnA series
Q series
1 (&H1)
Reading device memory data
1
1
2 (&H2)
Monitoring device memory registered to be monitored by
the PCWT instruction
4 (&H4)
Reading extension file register data
5 (&H5)
Monitoring extension file registers registered to be
monitored by the PCWT instruction
7 (&H7)
Reading extension file register data by specifying
sequential addresses
2
8 (&H8)
Loading a sequence program
9 (&H9)
Loading a microcomputer program
10 (&HA)
Reading comment data
11 (&HB)
Reading extension comment data
12 (&HC)
Reading a special function module’s buffer memory
13 (&HD)
Reading the type of a PLC CPU
14 (&HE)
Reading parameter data (reading MELSECNET/10
parameters)
21 (&H15)
Reading network information
22 (&H16)
Reading routine parameters
513 (&H201)
Reading the type of a Q/QnA series PLC CPU
515 (&H203)
Reading device memory of a Q/QnA series PLC CPU
516 (&H204)
Random read of device memory of a Q/QnA series PLC
CPU
533 (&H215)
Reading buffer memory of an intelligent functional
module of a Q/QnA series PLC CPU
1 : Possible only within the device range of AnA/AnU/AnUSCPU. (File register R cannot be read.)
2 : Available only for AnA/AnU/AnUSCPU.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...