C - programming examples, Sample programs for the analog input module, Plc-2 family processors – Rockwell Automation 1771-IFE ANALOG INPUT MODULE User Manual
Page 64: Programming examples, Appendix

Appendix
C
Publication 1771Ć6.5.115 - February 1999
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
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