Toshiba PROSEC T3 User Manual page 64

Hide thumbs Also See for PROSEC T3:
Table of Contents

Advertisement

6. Function Details
(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 mode (normal) for channel 1
At the beginning of RUN mode (at the first scan), the mode data 129 (H0081) is
written into the address 32 (CH1 mode) of the buffer memory.
• Reading the status register (XW000) and writing the command register (YW001)
Channel 1
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 90000 is written into the
addresses 3⋅2 (CH1 set-point-1).
62
Pulse Input Module (PI312)
Soft-gate (Y0010) = ON
Interrupt-enable (Y0011) = ON
Output-enable (Y0012) = OFF
Set-point-1 = 90000

Advertisement

Table of Contents
loading

Table of Contents