Parallel port message list mode triggering example – Rockwell Automation 2706-LV2P_LV2R_LV4P_LV4R DL40 PLUS USER MANUAL User Manual

Page 190

Advertising
background image

Serial and Parallel Port Examples

F–5

Publication 2706-807 – July 1998

Parallel Port Message List Mode Triggering Example

This example shows message triggering through the parallel port.

Masked Move
Source

N7:1

2<

Mask

0FFF0Fh

-16<

Dest

O:3.0

2<

Move
Source

2

2<

Dest

N7:1

2<

This SLC program triggers a message using the parallel port (Message List Mode). This example uses a
1746-OB16 output module with the four least significant output lines tied to the strobe lines of the DL40 Plus.

MOV

0000

MVM

0001

0002

Enter: 1 to send a Priority Message

2 to add a message to the list
3 to delete a message from the list

The data is placed in an integer file and then masked to make sure that the
data is not corrupted. This is useful when the data and strobe lines are
located in the same module.

Move
Source

1

1<

Dest

N7:2

1<

MOV

The message number to be added, deleted, or triggered as a priority
messsage is entered here. In this example, message number 1 is added to
the list..

Masked Move
Source

N7:2

1<

Mask

0FFFFh

-1<

Dest

O:1.0

1<

MVM

0003

<END>

0004

Advertising