B - programming examples, Programming examples, Appendix – Rockwell Automation 1771-IFF/A,D17716.5.116 FAST ANALOG INPUT MODULE User Manual

Page 73

Advertising
background image

Appendix

B

Publication 1771Ć6.5.116 - July 1996

Programming Examples

The following are sample programs for entering data in the
configuration words of the write block transfer instruction when
using the PLC-2, PLC-3 or PLC-5 family processors.

To enter data in the configuration words, follow these steps:

Example:
Enter the following rung for a write block transfer:

EN

DN

011

06

111

06

BLOCK XFER WRITE

DATA ADDR:
MODULE ADDR:
BLOCK LENGTH:

FILE:

030

110

19

400 - 437

400 is the address of the write block transfer data file. You want to
examine configuration word 1.

Step

Action

Description

1.

Press [SEARCH]8<data address>

Finds the block transfer instruction

2.

Press CANCEL COMMAND

Removes preceding command

3.

Press [DISPLAY]0 or 1

Displays the file in binary or BCD

4.

Move cursor to data to be modified

5.

Enter new data

6.

Press [INSERT]

Writes data to file element

Use the above procedure to enter the required words of the write
block transfer instruction. Be aware that the block length will depend
on the number of channels selected and whether scaling is or is not
performed; for example, the block may contain only 3 words if no
scaling is performed but may contain 37 words if using 16 inputs
with scaling.

Sample Programsfor the

Analog Input Module

PLCĆ2 Family Processors

Advertising