Toshiba PROSEC T3 User Manual page 91

Hide thumbs Also See for PROSEC T3:
Table of Contents

Advertisement

(6) Sample program
In the following sample programs, it is assumed that the PI312 is allocated to XW000
and YW001.
• Setting the auto-reset universal counter (normal) for channel 1, and the slave timer
(1 kHz, normal) for channel 2
At the beginning of RUN mode (at the first scan), the mode data 129 (H0081) is
written into the address 32 (CH1 mode) and the mode data 17 (H0011) is written
into the address 33 (CH2 mode) of the buffer memory.
• Reading the status register (XW000) and writing the command register (YW001)
Channel 1: Soft-gate (Y0010) = ON
Channel 2: Soft-gate (Y0014) = OFF
When R0100 is ON, Y0010 and Y0011 are set to ON. Then I/O registers (XW000
and YW001) are updated by direct I/O instruction (I/O).
• Writing the set-point data
Channel 1
At the rising edge of R0101 coming ON, the data 3000 is written into the addresses
3⋅2 (CH1 set-point-1).
Interrupt-enable (Y0011) = ON
Output-enable (Y0012) = OFF
Interrupt-enable (Y0015) = OFF
Output-enable (Y0016) = OFF
Set-point-1 = 3000
6. Function Details
89
User's Manual

Advertisement

Table of Contents
loading

Table of Contents