![](/images/new-backgrounds/1203053/20305319x1.webp)
| 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)
Visit our website: www.fieldserver.com
Page 8