B - programming examples, Sample programs for the input module, Plc-3 family processors – Rockwell Automation 1771-IXHR , D17716.5.80 HIGH RESOL.THERMOCOUPLE User Manual

Page 51: Programming examples

Advertising
background image

Appendix

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–3 or PLC–5 family
processors.

Following is a sample procedure for entering data in the configuration words of
the write block transfer instruction when using a PLC–3 processor. For a
complete sample program, refer to Figure 4.2.

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

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

EN

BTW
RACK:
GROUP:
MODULE
DATA:

001

1

1 = HIGH

F0003:0000

DN

ER

LENGTH: 27

CNTL: FB004:0000

BLOCK XFER WRITE

CNTL

CNTL

CNTL

13

15

12

Power Up Bit

F0003:0000 is the address of the write block transfer data file. You want to
enter/examine word 1.

1. Press [SHIFT][MODE] to display your ladder diagram on the industrial

terminal.

2. Press DD,03:0[ENTER] to display the block transfer write file.

The industrial terminal screen should look like Figure B.2. Notice the
highlighted block of zeroes. This highlighted block is the cursor. It should be in
the same place as it appears in Figure B.2. If it is not, you can move it to the
desired position with the cursor control keys. Once you have the highlighted
cursor in the right place, you can go on to step 3.

3. Enter the data corresponding to your bit selection in words 0 through 4.

Sample Programs for the Input

Module

PLC-3 Family Processors

Advertising