Rockwell Automation 1336-GM1 Remote I/O Communications Module User Manual

Page 42

Advertising
background image

4–4

Creating Ladder Logic Programs

Example Application 2

Another application for datalinks is to set a parameter into a Data Out
parameter. The controller input image table word connected to this
datalink will then receive the value of the parameter programmed into
the Data Out parameter.

For example, to monitor the value of parameter 27 in a 1336 PLUS
drive, you need to:

1. In the 1336 PLUS drive, set parameter 119 (Data Out A1) to 27.

2. On the module, slide SW 3.4 to ON. See Figure 2.6.

3. If your communications module is configured like Figure 4.1,

word 3 (fourth word) in the input image would receive the value
of parameter 27.

Example Application 3

A third application for datalinks is to change multiple parameters
with only two datalinks enabled. During each scan, this application
changes a parameter and then verifies that it has been changed.

For example, to change parameters 27, 28, and 29 in a 1336 PLUS
drive, you need to:

1. In the 1336 PLUS drive, set the following parameters:

2. On the module, slide SW 3.4 and SW 3.5 to ON to enable

datalinks A and B (See Figure 2.6). Slide the other DIP switches
on SW3 to OFF.

A parameter number must be moved or copied into word 0 (first
word) and word 2 (third word) of the output image for each scan.
The new parameter value must be moved or copied into word 1
(second word) of the output image. In our example, we move the
following data into the input image table:

A successful scan yields the following results in word 0 and 1 in
the input image table:

Logic can be developed for the controller that uses the values in
word 0 (first word) and word 1 (second word) of the input image
to verify that the change was completed successfully.

Parameter:

Setting

111 (Data In A1)

112

119 (Data Out A1)

112

113 (Data In B1)

120

Scan

Word 0 and 2

Word 1

Description

1

27

123

Parameter 27 will be set to 123.

2

28

456

Parameter 28 will be set to 456.

3

29

789

Parameter 29 will be set to 789.

Scan

Word 0

Word 1

Description

1

27

123

Parameter 27 has been set to 123.

2

28

456

Parameter 28 has been set to 456.

3

29

789

Parameter 29 has been set to 789.

Advertising