FieldServer FS-8700-17 instruction manual Bit, Packed

Page 10

FS-8700-17 Optomux

 

Driver Manual

 

 

 

 

 

 

 

Opto22_trigger*

An optional parameter. If used then set the

No, Yes

 

 

 

value of this parameter to yes or no and

 

 

 

 

the da_byte_name parameter must be

 

 

 

 

specified too.

 

 

 

 

When this parameter is set to yes then the

 

 

 

 

Optomux driver processes this map

 

 

 

 

descriptor differently from a normal wrbc or

 

 

 

 

rdbc function.

 

 

 

 

The driver processes the map descriptor at

 

 

 

 

the scan interval specified. Each time that

 

 

 

 

it is processed the driver checks the

 

 

 

 

element of the da_byte_name data array

 

 

 

 

specified. If the value of the 1st element of

 

 

 

 

array located at data_array_offset is 1 then

 

 

 

 

the driver executes the command. If the

 

 

 

 

value is not equal to one then the driver

 

 

 

 

ignores the map descriptor.

 

 

 

 

If the map descriptor is triggered then the

 

 

 

 

driver will write a response status to the

 

 

 

 

same data element on completion of the

 

 

 

 

poll. Thus the value of 1 will be set to zero

 

 

 

 

for success or some other value indicating

 

 

 

 

an error.

 

 

 

 

More information is provided in chapter 6.

 

 

 

Opto22_format*

This parameter only has meaning when

Bit, Packed

 

 

 

the function is a read of digital data.

 

 

 

 

By default the OPTO22 devices returns 16

 

 

 

 

position states when digital data is read (

 

 

 

 

eg. READ STATUS). The Optomux driver

 

 

 

 

writes the data as one 16 bit unsigned

 

 

 

 

integer to one data element of the data

 

 

 

 

array specified. (That is, the data is written

 

 

 

 

to the data array in packed bit format.)

 

 

 

 

For example, if the 1st and 5th inputs were

 

 

 

 

on and all others were off the driver would

 

 

 

 

write the value 17 to the first element of the

 

 

 

 

data array.

 

 

 

 

The driver can be instructed to unpack this

 

 

 

 

data into separate bit states, writing each

 

 

 

 

module position’s state to a consecutive

 

 

 

 

data array element.

 

 

 

 

When the Bit keyword is used the driver

 

 

 

 

sets the states of consecutive data array

 

 

 

 

elements starting at Data_Array_Offset.

 

 

 

 

The number of elements that are written is

 

 

 

 

determined by length and a maximum of

 

 

 

 

16 elements will be written.

 

 

 

Opto22_function

This parameter is specified by using one of

See Table 6.1

 

FieldServer Technologies 1991 Tarob Court, Milpitas, California 95035 (408) 262-2299 fax: (408) 262-9042

Visit our website: www.fieldserver.com E-mail: support@fieldserver.com

Page 8

Image 10
Contents FS-8700-17 Optomux Table of Contents Optomux Driver Description Driver Scope of Supply Optomux SystemHardware Connections FS-X40Configuring the FieldServer as a Optomux Driver Client Data ArraysClient Side Connections Client Side NodesClient Side Map Descriptors FieldServer Related Map Descriptor ParametersDriver Related Map Descriptor Parameters Bit, Packed SET Time Delay Generate N Pulses Read and Average Inputs Timing ParametersDEVICE77STAT , Discinputs Map Descriptor Example 1 Read on/off StatusRead Status FS-8700-17 Optomux Driver Manual Map Descriptor Example 3 Command Response/Completion Status Read STATUS, ResponsearrMap Descriptor Example 4 Triggered Action DEVICE77STAT , CntrposnsDEVICE77STAT , Anadata This example, module positions 1 and 5 are pulsed PULSE77 TimedataCLRLOW77 Lowarray Wrbc , DEV77 , 16 , 10.0sConfiguring the FieldServer as a Optomux Server DataArrayName, DABitName, DAByteName Command Response StatusDriver Notes Module PositionsOptomux Commands FS-8700-17 Optomux Driver Manual Read Specified module positions get set Affected. The data period of pulses Only one module position may be Calculated and read. Data read gets Array Element Contents Driver StatsRevision History