Appendix K: Introduction to Serial Communications
K-Sequence Communications
The K-Sequence protocol can be used for communication with DirectSOFT 5, an operator
1
interface or any other device that can be a K-Sequence master. The DL05 PLC can be a K-
Sequence slave on either port 1 or port 2. The DL05 PLC cannot be a K-Sequence master.
2
In order to use port 2 for K-Sequence communications you first need to setup the port using
either DirectSOFT 5 or ladder logic as described above.
3
DirectNET Communications
The DirectNET protocol can be used to communicate to another PLC or to other devices
4
that can use the DirectNET protocol. The DL05 can be used as either a master using port 2
or a slave using either port 1 or port 2.
E
In order to use port 2 for DirectNET communications you must first setup the port using
either DirectSOFT 5 or ladder logic as previously described.
6
For network slave operation, nothing more needs to be done. Port 2 will function as a slave
unless network communications instructions are executed by the ladder logic program.
7
For a network master operation you will simply need to add some ladder rungs using the
network communication instructions RX and/or WX. If you use more than one network
communication instruction is executed at any given time. If you have just a few network
H
communications instructions in your program, you can use discrete bits to interlock them. If
you are using many network communications instructions, a counter or a shift register will be
9
a more convenient way to interlock the instructions.
The following step-by-step procedure will provide you the information necessary to set up
10
your ladder program to receive data from a network slave.
Step 1: Identify Master Port # and Slave #
K
The first Load (LD) instruction identifies the
communications port number on the network master
(DL05) and the address of the slave station. This
12
instruction can address up to 99 Modbus slaves, or 90
DirectNET slaves. The format of the word is shown to
13
the right. The "F2" in the upper byte indicates the use
of the right port of the DL05 PLC, port number 2.
The lower byte contains the slave address number in
14
BCD (01 to 99).
Step 2: Load Number of Bytes to Transfer
A
The second Load (LD) instruction determines the
number of bytes which will be transferred between the
B
master and slave in the subsequent WX or RX
instruction. The value to be loaded is in BCD format
C
(decimal), from 1 to 128 bytes.
D
K–10
DL05 Micro PLC User Manual, 6th Edition, Rev. A
F
2
0
1
Slave address (BCD)
Port number (BCD)
Internal port (hex)
LD
KF201
6
4
# of bytes to transfer
LD
K64
(BCD)
Need help?
Do you have a question about the DL05 and is the answer not in the manual?