Rockwell Automation 2706-LV2P_LV2R_LV4P_LV4R DL40 PLUS USER MANUAL User Manual

Page 178

Advertising
background image

Remote I/O Application Examples

E–7

Publication 2706-807

Return Clock or Date Data – PLC5 Programming Example
(Any Run Mode)

This program is used with special messages 912 and 913. The program
captures the clock and date data returned from the DL40 Plus to the PLC.
Any of the run modes are compatible with this program.

0000

Bit Field Distributor
Source

N9:0

912<

Source Bit

0

Dest

O:040

–31856<

Dest Bit

0

Length

12

BTD

0001

0002

0003

This rung is used for handshaking. It is recommended that
when data is being sent from the DL40 Plus to the PLC
that handshaking be used. Switch bank 2, switch 7, must
be set for this to work properly.

< >

HANDSHAKE

I:040

17

O:040

17

Move
Source

I:040

–32256<

Dest

N9:1

–28136<

MOV

Move
Source

I:041

0<

Dest

N9:2

18456<

MOV

CLOCK_DATE

I:040

14

<END>

Word 0, bit 14, of the input image table is the clock date bit. When this bit is set, the
clock/date information is in word 0 and word 1 of the input image table.
In this example, data from the DL40 Plus is placed in N9:1 and N9:2.
NOTE: The data from the DL40 Plus is in BCD

Advertising