Rs-485 serial triggering example – Rockwell Automation 2706-LV2P_LV2R_LV4P_LV4R DL40 PLUS USER MANUAL User Manual

Page 187

Advertising
background image

Serial and Parallel Port Examples

F–2

Publication 2706-807 – July 1998

RS-485 Serial Triggering Example

This example shows serial triggering of the DL40 Plus through the
RS-485 port using Channel 0 of an SLC. A PLC with Channel 0
could also be used.

<END>

ASCII Handshake Lines
Channel

0

AND Mask

0000h

OR Mask

0002h

Control

R6:1

Channel Status

001Eh<

Error

0<

<ER>

Timer On Delay
Timer

T4:0

Time Base

1.0

Preset

1<

Accum

0<

This program continuously sends the contents of the string file ST9:0 out
the Channel 0 port of the SLC to the RS-232 port of the DL40 Plus.

TON

0000

AHL

0001

0004

T4:0

DN

T4:0

<EN>

<DN>

<EN>

<DN>

DN

ASCII Write
Channel

0

Source

ST40:0

Control

R6:0

String Length

0<

Characters Sent

25<

Error

0<

<ER>

AWT

0002

T4:0

<EN>

<DN>

DN

ASCII Handshake Lines
Channel

0

AND Mask

0002h

OR Mask

0000h

Control

R6:2<

Channel Status

001Dh<

Error

0<

<ER>

AHL

0003

T4:0

<EN>

<DN>

DN

R6:0

EM

Advertising