Download 2750-ND001, Intelligent Antenna (DH-485 Multi

Transcript
5
Chapter
Setting Up a DH485 Network of Antennas
5-2
8. Enter PLC-5115
Program
7
This section contains a sample ladder logic program to
enable communications between the PLC processor, Flexible
Interface Module, and Intelligent Antenna.
Program Description
The program contains four different types of commands to
perform antenna operations:
1.
Two Set Antenna
Configuration
commands
-
The first command configures the antenna (node #4) to
operate with a 2K read/write tag.
-
The second command configures the antenna (node #5) to
operate with a 20 character programmable tag.
Both commands configure the antenna for object detect
disabled with a 3 second object detect timeout.
2.
Two Write (once) commands
-
The first write command (node #4) writes 10 bytes to the
2K read/write tag.
-
The second write command (node #5) writes 20
characters to the programmable tag.
The number of bytes and the starting tag address for each
write command varies.
3.
Two Read (Once) commands
-
The first read command (node #4) reads 10 bytes from the
2K readlwri te tag.
-
The second read command (node #5) reads 20 characters
from the programmable tag.
The number of bytes and the starting tag address for each
read command varies.
4.
Two Reset commands
-
Resets antenna (node #4).
-
Resets antenna (node #5).