11 - 256 11 - 256
MELSEC-Q
11 INSTRUCTIONS AND FUNCTIONS
PCWT
Instruction
PC WriTe
• This instruction is used to write various data to the PLC CPU.
• This instruction is used to operate the PLC CPU.
PCWT <control table>, <storage area for data to be written>
Control table
• • • •
Specify the type of data written to the PLC CPU.
Syntax
Storage area for data to be
written
• • • •
Specify the variable in which data to be written to the
PLC CPU is stored.
Examples
PCWT A%( ), B%( )
• • • •
Writes data stored in the integer array B% to the
PLC CPU with the type of data specified by the
integer array A%.
Description
• The PCWT instruction reads various data to the PLC CPU and operates 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)
Writing to device memory
1
1
2 (&H2)
Monitor registration of device memory
3 (&H3)
Random writing to device memory
5 (&H5)
Monitor registration of extension file registers
6 (&H6)
Random writing to extension file registers
7 (&H7)
Writing data to extension file registers by specifying
sequential addresses
2
8 (&H8)
Writing a sequence program
3
9 (&H9)
Writing a microcomputer program
3
10 (&HA)
Writing comment data
11 (&HB)
Writing extension comment data
12 (&HC)
Writing to a special function module's buffer memory
14 (&HE)
Writing parameter data
3
15 (&HF)
Analyzing parameter data
3
16 (&H10)
Remote STOP of a PLC CPU
17 (&H11)
Remote RUN of a PLC CPU
20 (&H14)
Interrupting the PLC CPU
4
515 (&H203)
Writing to device memory of a Q/QnA series PLC CPU
516 (&H204)
Random writing to device memory of a Q/QnA series PLC
CPU
533 (&H215)
Writing to 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.
3 Cannot be executed while the PLC CPU is running.
4 Available only for the local station.