DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming API 79 Operands: m 1 : No. of special module m 2 : CR# in special module to be written S : Data to be written in CR n : Number of data to be written at a time Explanations: 1. PLC uses this instruction to write data into CR (Control register) on special modules. 2. Setting range of m 1 : ES2/EX2/SS2: 0 ~ 7; SA2/SE/SX2: 0~107 3. Setting range of m 2 : ES2/EX2: 0 ~ 255; SS2: 0~48; SA2/SE/SX2: 0~499. 4. Setting range of n :. Program Example: 1. Use 32-bit instruction DTO to write the content in D11 and D10 into CR#13 and CR#12 of special module No.0. One 32-bit data is written at a time ( n = 1) 2.
When X0 = ON, the instruction executes; when X0 = OFF, the previous content in D10 and D11 won’t be changed. X0 The rules for operand: 1. m 1 : number of special module. The modules are numbered from 0 (closest to MPU) to 7 automatically by their distance from MPU. Maximum 8 modules are allowed to connect to MPU 2. m 2 : number of CR (Control Register). CR is the 16-bit memory built in the special module for and will not occupy any digital I/O points control or monitor purpose, numbering in decimal. All operation status and settings of the special module are recorded in the CR.
3-218 Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 SX2 SE D TO P Write CR data into Special Modules Controllers ES2/EX2 SS2 SA2 SX2 SE Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY Kn M KnS T C D E F TO, TOP: 9 steps DTO, DTOP: 17 steps m 1 * * * m 2 * * * S * * * n * * * PULSE 16-bit 32-bit SA2 2 SE SA2 SA2 ES2/EX2 SS SX2 ES2/EX2 SS2 SX2 ES2/EX2 SS2 SX2 SE SE Range of n ES2/EX2 SS2 SA2/SE/SX2 16-bit instruction 1~4 1~(49 - m 2) 1~(499 - m 2) 32-bit instruction 1~2 1~(49 - m 2)/2 1~(499 - m 2)/2 DTO K0 K12 D10 K1