SlotServer Configuration Manual
Page 16 of 37
ProSoft Technology, Inc. is the exclusive provider of FieldServer SlotServers.
For Technical Support call +1 661.716.5100
PROGRAMMING THE CONTROLLOGIX CPU FOR LARGER SLOTSERVER INTERFACES
5
The previous example is for accessing only one Data Array. The following steps describe how to access multiple
Data Arrays.
5.1
Multiple Input Data Arrays
In this example, we access SlotServer Arrays In[1] and In[2] by de-multiplexing them out of the Local In buffer using
the block number in the header information.]. We simply add to the existing ladder program as shown in the
Quickstart example. Add a branch after the CPS element that copies the input image Tag and copy and paste EQU
and CPS elements from the first rung. Create a new Input Tag for Lon_In_02 of type REAL and dimension 76.
Finally, remember to set the EQU Source B value to 2 to scan for incoming data from the second In Array, which is
recognized by a value of 2 in InData_Copy[2].
See the ladder program below how to add InData_Copy[2].
Very Important Note!
It is very important to first make a synchronous copy of the input image data before using it. If this is not done, the
input data cannot be guaranteed to be from a specific LonWorks Function Block.
5.2
Accessing Multiple Output Data Arrays
To access more output Data Arrays it is necessary to create a Multiplexer in Ladder. The Flash drive supplied with
the product includes an ACD file with an example of multiplexing use.
The basic steps include:
Create a Counter which counts up every 100ms.
Place the counter value into the Lon_Out_xx Tag at offset 2.
Copy the whole Tag into the output Data Image Tag for transferring to the LonWorks network.
The example program following shows an output counter that can count up to 25 which allows the transfer of data
into 25 Output Function Blocks. Only 2 rungs are shown to transfer data for blocks 1 and 2. Add more rungs with
more Lon_Out_xx tags to transfer data to other output Function Blocks.
It is possible to add up to 65535 blocks. The update rate decreases as the number of blocks goes up. For 25 blocks
the update rate is 25*RPI = 25*0.1 = 2.5 seconds.
The upcount may be restricted to a certain value, e.g.2 by changing the Preset value of the CTU element.