[MAT logo][Prev][Up][Next]

Traffic Cop usage scenario

In this scenario, the PC will be the hub between two or more disparate industrial busses or networks, copying data between them pretty much without change and without any actual logic or intelligence.

This scenario contains no logic module, only two (or more) bus or network communications modules. The mapping between the various modules is specified in the matplc.conf file itself.

In the config, there will be a series of clauses looking pretty much like this, one for each point:

PLC:point L1 "light 1" bus1
bus1:map in bit.1 L1
bus2:map out bit.1 L1

A point can also be mapped to more than one output, like this:

PLC:point L1 "light 1" bus1
bus1:map in bit.1 L1
bus2:map out bit.1 L1
bus3:map out bit.42 L1

An addition to this would be to have one of the logic modules to do some massaging of the data. For instance, the DSP module could convert between units:

PLC:point distIN "distance in inches" bus1
PLC:point distMM "distance in mm" dsp
bus1:map in register.1 distIN
dsp:fblock add distMM distIN 25.4
bus2:map out register.1 distMM

[Prev][Up][Next]

$Date: 2004/12/28 05:32:13 $