05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

DATA TRANSFORMATION<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

registers that you want to expose. You will then be asked for a start address in the master<br />

device, and the number of registers to map, and the mappings will be created as shown.<br />

In this example, registers N7:0 through N7:7 in an Allen-Bradley controller have been<br />

exposed for access via Modbus TCP/IP as registers 40001 through 40008. Crimson will<br />

automatically ensure that these data items are read from the Allen-Bradley PLC so as to fulfill<br />

Modbus requests, and will automatically convert writes to the Modbus registers into writes to<br />

the PLC. This mechanism allows even simple PLCs to be connected on an Ethernet network.<br />

MASTER AND MASTER<br />

To move data between two master devices, simply select one of the devices, and create a<br />

Gateway Block for that device. You can then add references to the other device’s registers<br />

just as you would when exposing data on a slave protocol. Again, C2 will automatically read<br />

or write the data as required, transparently moving data between the devices. The example<br />

above shows how to move data from a Mitsubishi FX into an SLC-500.<br />

WHICH WAY AROUND?<br />

One question that may occur to you is whether you should create the Gateway Block within<br />

the Allen-Bradley device, as in this example, or within the Mitsubishi device. The first thing<br />

to note is that there is no need to create more than a single block to perform transfers in a<br />

single direction. If you create a block in AB to read from MITFX, and a block in MITFX to<br />

write to AB, you’ll simply perform the transfer twice and slow everything down! The second<br />

observation is that the decision as to which device should “own” the Gateway Block is<br />

essentially arbitrary. In general, you should create your blocks so as to minimize the number<br />

of blocks in the database. This means that if the registers in the Allen-Bradley lay within a<br />

single range, but the registers in the Mitsubishi are scattered all over the PLC, the Gateway<br />

Block should be created within the Allen-Bradley device so as to remove the need to create<br />

multiple blocks to access the different ranges of the Mitsubishi device.<br />

DATA TRANSFORMATION<br />

You may also use Gateway Blocks to perform math operations that your PLC might not<br />

otherwise be able to handle. For example, you may want to read a register from the PLC,<br />

scale it, take the square root, and write it back to another PLC register. To accomplish this,<br />

PAGE 72<br />

http://www.redlion.net/controller

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!