AutomationDirect Technical Support
AutomationDirect | Direct Sales in US and Canada | 1-800-633-0405

CPU Communication Port Setup Parameters AutomationDirect Logo


Application Note AN-D2-002
Revision 01
June 2004

Non Sequence (ASCII) Settings

If you are using Non Sequence (ASCII) settings for the com port, you have to follow the example for the specific PLC that you are using:

- DL05/06 Non Sequence
- DL250/350 Non Sequence
- DL260 Non Sequence
- DL450 Non Sequence
- Remote I/O
  • 05 Port 2 (RJ-12)
  • 06 Port 2 (15 pin)
  • 250(-1) Port 2 (15-Pin)
  • 260 Port 2 (15-Pin)
  • 350 Port 2 (25-Pin)
  • 450 Port 1 (25-Pin)

Under normal conditions, all the communication port parameters are configured using the AUX functions of the handheld programmer or with the Secondary Port Setup in DirectSoft32 V4.0. Some customers have the port configuration done by the ladder code. By configuring it in ladder, you will know that the port is configured correctly anytime the PLC is placed into RUN mode.

For K Sequence, DirectNet, and Modbus RTU protocols, all the PLCs have the same type of configuration, but the V memory locations are a little different between families.

WORD 1
0yyy 0ttt mmmm mxxx

RTS On-delay
yyy
Communication Timeout
(in % of standard timeout)
ttt
Protocol Mode
mmmmm
RTS Off-delay
xxx
450: V772
350: V7655
250, 260: V7655
05, 06: V7655
000 = 0mS
001 = 2mS
010 = 5mS
011 = 10mS
100 = 20mS
101 = 50mS
110 = 100mS
111 = 500mS
000 = 100%
001 = 120%
010 = 150%
011 = 200%
100 = 500%
101 = 1000%
110 = 2000%
111 = 5000%
10000 = K-Sequence
01000 = DirectNet
00100 = Modbus
000 = 0mS
001 = 2mS
010 = 5mS
011 = 10mS
100 = 20mS
101 = 50mS
110 = 100mS
111 = 500mS

 

Word 2
K-Sequence, DirectNet, & Modbus

pps0 ebbb xaaa aaaa
Parity

pp
StopBits

s
Echo Suppression
(06 and 260 only)

e
Baud Rate

bbb
Protocol Mode
(DirectNet)

x
Secondary Address

xaaaaaaa (DirectNet)
_aaaaaaa (K-Seq & Modbus)
450: V773
350: V7656
250, 260: V7656
05, 06: V7656
00 = None
10 = Odd
11 = Even
0 = 1 bit
1 = 2 bits
0 = 232 or 422
1 = 485 2 wire
000 = 300  
001 = 600
010 = 1200
011 = 2400
100 = 4800
101 = 9600
110 = 19200
111 = 38400
0 = Hex
1 = ASCII
K-Sequence: 1-90
DirectNet: 1-90
Modbus: 1-247

 

Word 3 
450: V767
350: V7657
250, 260: V7657
05, 06: V7657
The CPU will accept the setup values when a 'setup complete' flag is written to this V-memory location. For the 450 this flag is a value of K5555, representing the 4 available ports, and a value of K0500 for the 05/06, 250 and 350 CPUs. When the CPU checks this value, it will change the '5' to an 'A' if the port settings have been accepted, or an 'E' if there was an error.

To see an example of how this is done with a 450 CPU, please see the ladder example.


Copyright © 1999- AutomationDirect.com. ALL RIGHTS RESERVED