
1761-6.5
Application Examples
7-5
0005
N7:95
7
N7:90
7
0006
COP
Copy File
Source
#I:0.0
Dest
#N7:91
Length
2
COP
0007
T4:39
DN
N7:95
6
MVM
Masked Move
Source
N7:96
31<
Mask
0FFFh
4095<
Dest
O:0.0
341<
MVM
0008
MVM
Masked Move
Source
N7:95
202<
Mask
003Fh
63<
Dest
N7:81
5<
MVM
This rung moves the heartbeat bit that is received from the DNI (N7:95/7, the DNIs output) and moves its status to bit
N7:90/7. Bit N7:90/7 is bit 7 of the first word of input data that the DNI receives from the MicroLogix 1000. The DNI
toggles the heartbeat bit (N7:95/7) at the rate identified by the DNI Scan Delay (polling delay) x the DF1 Heartbeat.
Heartbeat Bit from DNI
Heartbeat B it to DNI
This rung copies the MicroLogix 1000 inputs to a contiguous group of data registers in integer file 7 of the MicroLogix
1000 controller. Grouping the data allows for a faster transfer of information to the DNI. In this example, the DNI reads
data using DNI parameters as follows: Input Size = 4 words, Input Type = N, File Number = 7, Input Word Offset = 90. In
this example, word 90 is the status word for communications between the MicroLogix 1000 and the DNI. Input data
starts at word N7:91.
This rung moves one word of output data received from the DNI (N7:96) to the outputs on the MicroLogix 1000. This
only occurs if the communications watchdog has not expired and the data from the DeviceNet master is valid. In this
example, the DNI writes data using DNI parameters, as follows: Output size = 4 words, Output Type = N, Output File
Number = 7, Output Word Offset = 95. In this example, word 95 is the status word for communications between the
MicroLogix 1000 and the DNI. Output data starts at word N7:96. If it is desired that the outputs do not clear on a
communications error, remove XIO T4:39/DN from this rung. Then the MicroLogix 1000 continues to scan and maintain
the outputs in their last state.
DNI Communications Lost Data Valid Bit from DNI
This rung moves the first six bits of N7:95 into an integer register. The first six bits of incoming data from the DNI are
part of the status byte. These bits represent the node address of the DNI on DeviceNet. Moving these bits to an integer
location allows the user program to determine the DNI/MicroLogix node address. In this example, the node address is
stored at N7:81. Valid node numbers are from 0 to 63. If you do not need to know the DNI DeviceNet address, delete this
rung.
Summary of Contents for DeviceNet 1761-NET-DNI
Page 14: ...1761 6 5 P 6...
Page 16: ...1761 6 5 1 2 Product Overview...
Page 22: ...1761 6 5 2 6 Quick Start for Experienced Users...
Page 34: ...1761 6 5 4 6 Installation and Wiring...
Page 74: ...1761 6 5 6 16 Setup Programming and T roubleshootin g...
Page 84: ...1761 6 5 7 10 Application Examples...
Page 94: ...1769 6 5 A 4 Specifications...
Page 99: ...1761 6 5 I 3 AB Parts...
Page 100: ......