Rockwell Automation 2706-LV2P_LV2R_LV4P_LV4R DL40 PLUS USER MANUAL User Manual

Page 188

Advertising
background image

Serial and Parallel Port Examples

F–3

Publication 2706-807 – July 1998

Parallel Port Message Variable Slave Triggering Example

This example shows message triggering through the parallel port.

Masked Move
Source

N7:1

1<

Mask

0FFFFh

-1<

Dest

O:3.0

1<

Move
Source

1

1<

Dest

N7:1

1<

This SLC program triggers a message using the parallel port (Message Variable Slave Mode).

MOV

0000

MVM

0001

0002

A 1 sent to the strobe lines indicates that the data lines contain the number
of the message being triggered.

In this example, the strobe lines are the first four outputs in a 1746-OB16
output module located in the fourth slot of the SLC rack. Since the outputs
are the four least significant lines, a 1 sent to the output module makes
MS0 a 1 which indicates the data lines contain a message number.

Move
Source

1

1<

Dest

N7:2

1<

MOV

This example shows how message number 1 would be triggered. The
value is placed in an integer file so that its value can be masked. This is
useful when the data and strobe lines are located on the same output
module.

Masked Move
Source

N7:2

1<

Mask

0FFFFh

-1<

Dest

O:1.0

1<

MVM

0003

In this example, the data lines are located in a 1746-OB1 output module
located in the second slot of the SLC rack, so the message number data is
sent to O:1.0

Move
Source

8

8<

Dest

N7:3

8<

MOV

0004

Enter: 8 for variable 1

9 for variable 2
10 for variable 3
11 for variable 4

Advertising