< 5. Ladder Program Training >
5-29
TI 34M6A82-01E
2nd Edition : Nov. 1, 2002-00
Creating Block DEMO3
1. Select [File]–[New].
2. Enter “DEMO3” as the file name and click [OK].
3. Set the number of data registers used as local devices to 4, and click [OK].
4. Create the diagram as shown below and save it.
Notes on the READ/WRITE Instruction
Explanation on the READ/WRITE parameters used in this exercise is given below.
READ 5
1 /D00001 4
↑
↑
↑
↑
↑
Special
module read
instruction
Slot number
where the
analog input
module is
installed
Data position
number of
analog input
value in
channel 1
First device
number for
storing the
read data
Number of
data values to
be read
The above READ instruction reads 4 data values from channel 1 of the analog input module in slot 5,
and store them in /D00001 to /D00004
WRITE 2000
6
2
1
↑
↑
↑
↑
↑
Write
instruction
Data to write
Number of the
slot where the
analog output
module is
installed
Data position
number of
analog output
value in
channel 2
Number of
data values to
write
The above WRITE instruction writes a value of 2000 to channel 2 of the analog output module installed
in slot 6.