Example program for accessing configuration data – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 61

Advertising
background image

Chapter 4
Using the Remote I/O Link

4–24

The following program provides an example of using bi–directional block
transfers to:

Transfer Color CVIM module configuration data to a PLC.

Modify the data. In this program we move the location of Window 1 up
or down.

Transfer the reconfigured data back to the Color CVIM module from the
PLC.

Rung 2:0
SET O:023/01 TO INDICATE A CONFIGURATION BLOCK. SET APPROPRIATE BTX BITS TO
INDICATE BLOCK 110. THIS COMBINATION OF BITS IDENTIFIES CONFIGURATION BLOCK
110 FOR THE BTR AND BTW USED IN THIS SAMPLE PROGRAM.

MAKE SURE THAT YOUR COLOR CVIM CONFIGURATION HOST IS REMOTE I/O. THE COLOR
CVIM MUST HAVE REMOTE I/O ENABLED, RACK 2 SELECTED AND A BAUD RATE OF 57.6K.
| BTX TYPE |
| O:023 |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––+–––( )––––+–+
| | 01 | |
| |BTX 64 BIT| |
| | O:023 | |
| +–––( )––––+ |
| | 16 | |
| |BTX 32 BIT| |
| | O:023 | |
| +–––( )––––+ |
| | 15 | |
| |BTX 8 BIT | |
| | O:023 | |
| +–––( )––––+ |
| | 13 | |
| |BTX 4 BIT | |
| | O:023 | |
| +–––( )––––+ |
| | 12 | |
| |BTX 2 BIT | |
| | O:023 | |
| +–––( )––––+ |
| 11 |

Rung 2:1
| REQUEST TO |
| MOVE WIN 1 MOVE WIN 1 |
| UP UP |
| I:010 B3 B3 |
+––––] [–––––[ONS]–––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+
| 01 11 1 |

Rung 2:2
| REQUEST TO |
| MOVE WIN 1 MOVE WIN 1 |
| DOWN DOWN |
| I:010 B3 B3 |
+––––] [–––––[ONS]–––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+
| 02 12 2 |

Example Program For
Accessing Configuration Data

Advertising