B - programming examples, Programming examples – Rockwell Automation 1771-IFE , D17716.5.90 USER MNL. ANALOG INPUT Module User Manual
Page 48
Appendix
B
B-1
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. The PLC-2
family write block transfer data file should look like Figure B.1.
Sample Programs for the
Analog Input Module
PLCĆ2 Family Processors