![FieldServer FS-RA-CLX-LON-000 Скачать руководство пользователя страница 18](http://html.mh-extra.com/html/fieldserver/fs-ra-clx-lon-000/fs-ra-clx-lon-000_instruction-manual_2287915018.webp)
FS-RA-CLX-LON-000_SlotServer_LonWorks_Open_Interface_(T17010)
Page 18 of 28
FieldServer Technologies
1991 Tarob Court Milpitas, California 95035 USA
Web
:www.fieldServer.com
Tel
: (408) 262-2299
Fax
: (408) 262-2296
Toll_Free
: 888-509-1970
6.
Accessing All LonWorks Function Block Data
The Quickstart example is for accessing only LonWorks Data in Functional blocks:
In[0] and Out[0]
6.1.
Input Data from Function Blocks In[1] to In[24]
To access Input Data Blocks In[1] up to In[24] 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 compare for incoming data from the 2
nd
LonWorks functional
block which is In[1].
See the ladder program below how to add In[1].
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.
6.2.
Output Data from Function Blocks Out[1] to Out[24]
To access more output blocks is slightly more complicated since we need to create a
Multiplexer in Ladder.
The basic steps are:
•
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 below shows an output counter that can count up to 25 which allows
the transfer of data into all 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.