Users Manual 55
PART 2 DA264 6. Parameters
6.2 Sample program to access the parameters
To write the parameters into the DA264s buffer memory, use the WRITE instruction. No
special procedure is required.
To read the parameters from the DA264s buffer memory, use the READ instruction.
A sample program to write/read the parameters is shown below.
This is an example to set the output type as ±10V range (type = 5) for each channel.
In this sample program, it is assumed that he DA264 is allocated to YW000 to YW003.
For details of READ and WRITE instructions, refer to the T-series Instruction Set manual.
(Main program)
In this sample program, the rung 1 is activated at the beginning of RUN mode (at the second
scan) automatically. The output type is set to ±10V for all 4 channels.
The rung 2 is to read the analog output read-back values and the module status. These data
are read from the DA264 and stored in D4020 to D4027.
Writes 5 (c) into
4 words starting
with address
H8004.
(H8004)
(H8008) Reads 8 words
from address
H8008 and after.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net