The text of a manual ยท part 3 of 14
Optimation OptiLogic Driver Help, pages 9 to 18
Pages 9 to 18 of 119: Data Types Description; Address Descriptions
The original document is the PDF (1.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Optimation OL4054 and Optimation OL4058
Page 9
Optimation OptiLogic Driver Help
9 Data Types Description Data Type
Description
Boolean
Single bit
Byte
Unsigned 8 bit value bit 0 is the low bit bit 7 is the high bit
Char
Signed 8 bit value bit 0 is the low bit bit 6 is the high bit bit 7 is the sign bit
Word
Unsigned 16 bit value bit 0 is the low bit bit 15 is the high bit
Short
Signed 16 bit value bit 0 is the low bit bit 14 is the high bit bit 15 is the sign bit
DWord
Unsigned 32 bit value bit 0 is the low bit bit 31 is the high bit
Long
Signed 32 bit value bit 0 is the low bit bit 30 is the high bit bit 31 is the sign bit
Float
32 bit floating point value
Double
64 bit floating point value
String
Null terminated character array www. kepware.com
Page 10
Optimation OptiLogic Driver Help
10
Address Descriptions Address specifications vary depending on the type of module in use. Select a link from the following list to obtain specific address information for the module type of interest.
Select By SubType OL2104 OL2205 OL2304 OL3420 OL2108 OL2208 OL2408 OL3440 OL2109 OL2211 OL2418 OL3850 OL2111 OL2252 OL2602 OL4054 OL2201 OL2258 OL3406
Select By Classification 4 Digital Input 2 Channel Analog Input Base RS232 Port 8 Digital Input 4 Channel Analog Input Dual RS232 Port 16 Digital Input 8 Channel Analog Input OL3406 Operator Panel 24 Digital Input 16 Channel Analog Input OL3420 Operator Panel 32 Digital Input 2 Channel Analog Output OL3440 Operator Panel 4 Digital Output 4 Channel Analog Output OL3850 Operator Panel 8 Digital Output 8 Channel Analog Output 16 Digital Output 16 Channel Analog Output 24 Digital Output High Speed Counter 32 Digital Output 2 Channel High Speed Counter This device requires a client connection: tag addresses cannot be validated completely until successful communication with the device is made. Since the driver is unaware of the device configuration until this communication is made, the tag addressing parser can only notify the user of improper addresses within the driver.
Digital I/O Bit Mapping Points (bits) can be referenced using the optional Byte, Word, Short, DWord and Long data types. The following diagram illustrates how the driver maps bits within these data types.
www. kepware.com
Page 11
Optimation OptiLogic Driver Help
11
All digital inputs and outputs can be addressed as Byte, Word, Short, DWord or Long data types. When addressing a module (such as an 8 bit input module) as a Word data type, the upper 8 bits will be fixed at zero while the lower bits will contain the status of the 8 inputs.
4 Digital Input Module
Digital input modules are used to monitor the state of discrete field devices. Typical digital inputs are connected to switches, buttons, digital outputs from other equipment, discrete level sensors, thermostats and other On/Off sensing devices. Digital status is sensed by a controller such as an OptiLogic system, by passing current through an input sensor. When the current is on, the input state is active. When there is no current, the state is inactive.
Subtypes OL2205
4 Digital Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-3
Read Only
S<slot>:DI<offset>*
Byte
0
Read Only
S<slot>:DI<offset>*
Word, Short
0
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:DI0
1
Slot 1, point 0 is on.
S1:DI0 (as Byte)
15
Slot 1, byte 0 (points 0-3 are on).
S1:DI0 (as Word)
0
Slot 1, word 0 (points 0-3 are off).
S1:DI0 (as DWORD)
15
Slot 1, DWord 0 (points 0-3 are on).
8 Digital Input Module www. kepware.com
Page 12
Optimation OptiLogic Driver Help
12
Digital input modules are used to monitor the state of discrete field devices. Typical digital inputs are connected to switches, buttons, digital outputs from other equipment, discrete level sensors, thermostats and other On/Off sensing devices. Digital status is sensed by a controller such as an OptiLogic system, by passing current through an input sensor. When the current is on, the input state is active. When there is no current, the state is inactive.
Subtypes OL2208, OL2211, OL2201
8 Digital Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-7
Read Only
S<slot>:DI<offset>*
Byte
0
Read Only
S<slot>:DI<offset>*
Word, Short
0
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:DI0
1
Slot 1, point 0 is on.
S1:DI0 (as Byte)
255
Slot 1, byte 0 (points 0-7 are on).
S1:DI0 (as Word)
0
Slot 1, word 0 (points 0-7 are off).
S1:DI0 (as DWORD)
255
Slot 1, DWord 0 (points 0-7 are on).
16 Digital Input Module
Digital input modules are used to monitor the state of discrete field devices. Typical digital inputs are connected to switches, buttons, digital outputs from other equipment, discrete level sensors, thermostats and other On/Off sensing devices. Digital status is sensed by a controller such as an OptiLogic system, by passing current through an input sensor. When the current is on, the input state is active. When there is no current, the state is inactive.
Subtypes N/A
16 Digital Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-7
Read Only
S<slot>:DI<offset>*
Byte
0-1
Read Only
S<slot>:DI<offset>*
Word, Short
0
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only www. kepware.com
Page 13
Optimation OptiLogic Driver Help
13
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:DI0
1
Slot 1, point 0 is on.
S1:DI1 (as Byte)
255
Slot 1, byte 1 (points 8-15 are on).
S1:DI0 (as Word)
0
Slot 1, word 0 (points 0-15 are off).
S1:DI0 (as DWORD)
65535
Slot 1, DWord 0 (points 0-15 are on).
24 Digital Input Module
Digital input modules are used to monitor the state of discrete field devices. Typical digital inputs are connected to switches, buttons, digital outputs from other equipment, discrete level sensors, thermostats and other On/Off sensing devices. Digital status is sensed by a controller such as an OptiLogic system, by passing current through an input sensor. When the current is on, the input state is active. When there is no current, the state is inactive.
Subtypes N/A
24 Digital Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-7
Read Only
S<slot>:DI<offset>*
Byte
0-2
Read Only
S<slot>:DI<offset>*
Word, Short
0-1
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:DI0
1
Slot 1, point 0 is on.
S1:DI2 (as Byte)
255
Slot 1, byte 2 (points 16-23 are on).
S1:DI0 (as Word)
0
Slot 1, word 0 (points 0-15 are off).
S1:DI0 (as DWORD)
16777216
Slot 1, DWord 0 (points 0-23 are on).
32 Digital Input Module www. kepware.com
Page 14
Optimation OptiLogic Driver Help
14
Digital input modules are used to monitor the state of discrete field devices. Typical digital inputs are connected to switches, buttons, digital outputs from other equipment, discrete level sensors, thermostats and other On/Off sensing devices. Digital status is sensed by a controller such as an OptiLogic system, by passing current through an input sensor. When the currnet is on, the input state is active. When there is no current, the state is inactive.
Subtypes N/A
32 Digital Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-7
Read Only
S<slot>:DI<offset>*
Byte
0-3
Read Only
S<slot>:DI<offset>*
Word, Short
0-1
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Syntax
Data Type
Range
Access
S<slot>:DI<point>
Boolean
0-7
Read Only
S<slot>:DI<offset>*
Byte
0-3
Read Only
S<slot>:DI<offset>*
Word, Short
0-1
Read Only
S<slot>:DI<offset>*
DWord, Long
0
Read Only
4 Digital Output Module Digital outputs are used to turn loads on and off. Loads may be lights, motors, solenoids or any type of On/Off device. Digital outputs in the OptiLogic series come in three types: relay, transistor and solid state relay. Each type has applications it is best suited for. For more information, refer to the module manual. If there is a loss of communication with the host, the output module will enter a fail safe state. There are three types of states: fail safe to all outputs off, fail safe to a pattern and fail safe to last state. The time in which a fail safe state is entered after loss of communication can be delayed up to 25.5 seconds. If certain points need to be treated differently in fail safe mode, a pattern can be used to signify which points are turned on and which ones are turned off in fail safe mode.
Subtypes OL2104
Address Types 4 Digital Output Fail Safe Type Fail Safe Pattern Fail Safe Time Fail Safe Set www. kepware.com
Page 15
Optimation OptiLogic Driver Help
15 4 Digital Output Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DO<point>
Boolean
0-3
Read/Write
S<slot>:DO<offset>*
Byte**
0
Read/Write
S<slot>:DO<offset>*
Word, Short**
0
Read/Write
S<slot>:DO<offset>*
DWord, Long**
0
Read/Write
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping. **Since only the lower nibble of the least significant byte is being used, any value entered above 15 will be cropped.
Examples Address
Value
Description
S1:DO0
1
Slot 1, point 0 (turn point 0 on).
S1:DO0 (as Byte)
15
Slot 1, byte 0 (turn points 0-3 on).
S1:DO0 (as Word)
0
Slot 1, word 0 (turn all points off).
S1:DO0 (as DWORD)
15
Slot 1, DWord 0 (turn points 0-3 on).
Fail Safe Type Addressing There are three types of fail safe states: fail safe to all outputs off, fail safe to a pattern and fail safe to last state. These types may be specified by referencing FS.TYPE.
Values 1 = Fail safe to all outputs off 2 = Fail safe to the pattern contained in FS<point>.PATTERN 3 = Fail safe to last state
Requirements None Important: The value specified in FS.TYPE is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>:FS.TYPE
Byte, Word, Short, DWord, Long
N/A
Write Only
Fail Safe Pattern Addressing Using a fail safe pattern, users can specify which points are set and which ones are cleared when in fail safe mode.
Values True = turn point on False = turn point off
Requirements FS.TYPE must be set to 2 for device to fail safe to a pattern. Note: If using Byte, Word, Short, DWord or Long data types, the bit pattern determines which points are turned on and which ones are turned off. Important: The pattern specified in FS.PATTERN is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>FS<point>.PATTERN
Boolean
0-3
Write Only
S<slot>:FS<offset>.PATTERN*
Byte**
0
Write Only
S<slot>:FS<offset>.PATTERN*
Word, Short**
0
Write Only
S<slot>:FS<offset>.PATTERN*
DWord, Long**
0
Write Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
www. kepware.com
Page 16
Optimation OptiLogic Driver Help
16
**Since only the lower nibble of the least significant byte is being used, any value entered above 15 will be cropped.
Examples Address
Value
Description
S1:FS0.PATTERN
1
Slot 1, turn point 0 on in fail safe mode.*
S1:FS0.PATTERN (as Byte)
15
Slot 1, turn points 0-3 on in fail safe mode.*
S1:FS0.PATTERN (as Word)
0
Slot 1, turn points 0-3 off in fail safe mode.*
S1:FS0.PATTERN (as DWORD)
15
Slot 1, turn points 0-3 on in fail safe mode.*
*See Notes and Requirements above.
Fail Safe Time Addressing After communication between the host and the RTU has been lost, a time delay may be introduced before fail safe mode is engaged for the output module. This time delay can be entered by referencing FS.TIME and is specified in tenths of seconds.
Requirements None Important: The value specified in FS.TYPE is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>:FS.TIME
Byte, Word, Short, DWord, Long
N/A
Write Only
Examples Address
Value
Description
S1:FS.TIME
255
Slot 1, fail safe time delay = 25.5 seconds.
S1:FS.TIME
0
Slot 1, no delay.
S1:FS.TIME
1
Slot 1, fail safe time delay = .1 seconds.
Fail Safe Set Addressing For any of the fail safe configuration parameters (type, time and pattern) to be sent to the device, FS.SET must be set. Immediately after the parameters are sent, FS.SET will be reset.
Values True = Send fail safe configurations to device False = No action
Requirements None
Specifications Syntax
Data Type
Range
Access
S<slot>:FS.SET
Boolean
N/A
Write Only
8 Digital Output Module www. kepware.com
Page 17
Optimation OptiLogic Driver Help
17
Digital outputs are used to turn loads on and off. Loads may be lights, motors, solenoids or any type of On/Off device. Digital outputs in the OptiLogic series come in three types: relay, transistor and solid state relay. Each type has applications it is best suited for. For more information, refer to the module manual. If there is a loss of communication with the host, the output module will enter a fail safe state. There are three types of states: fail safe to all outputs off, fail safe to a pattern and fail safe to last state. The time in which a fail safe state is entered after loss of communication can be delayed up to 25.5 seconds. If certain points need to be treated differently in fail safe mode, a pattern can be used to signify which points are turned on and which ones are turned off in fail safe mode.
Subtypes OL2108, OL2109, OL2111
Address Types 8 Digital Output Fail Safe Type Fail Safe Pattern Fail Safe Time Fail Safe Set
8 Digital Output Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:DO<point>
Boolean
0-7
Read/Write
S<slot>:DO<offset>*
Byte
0
Read/Write
S<slot>:DO<offset>*
Word, Short
0
Read/Write
S<slot>:DO<offset>*
DWord, Long
0
Read/Write
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:DO0
1
Slot 1, point 0 (turn point 0 on).
S1:DO0 (as Byte)
255
Slot 1, byte 0 (turn points 0-7 on).
S1:DO0 (as Word)
0
Slot 1, word 0 (turn points 0-7 off).
S1:DO0 (as DWORD)
255
Slot 1, DWord 0 (turn points 0-7 on).
Fail Safe Type Addressing There are three types of fail safe states: fail safe to all outputs off, fail safe to a pattern and fail safe to last state. These types may be specified by referencing FS.TYPE.
Values 1 = Fail safe to all outputs off 2 = Fail safe to the pattern contained in FS<point>.PATTERN 3 = Fail safe to last state
Requirements None Important: The value specified in FS.TYPE is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>:FS.TYPE
Byte, Word, Short, DWord, Long
N/A
Write Only
Fail Safe Pattern Addressing www. kepware.com
Page 18
Optimation OptiLogic Driver Help
18
Using a fail safe pattern, users can specify which points are set and which ones are cleared when in fail safe mode.
Values True = turn point on False = turn point off
Requirements FS.TYPE must be set to 2 for device to fail safe to a pattern. Note: If using Byte, Word, Short, DWord or Long data types, the bit pattern determines which points are turned on and which ones are turned off. Important: The pattern specified in FS.PATTERN is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>FS<point>.PATTERN
Boolean
0-7
Write Only
S<slot>:FS<offset>.PATTERN*
Byte
0
Write Only
S<slot>:FS<offset>.PATTERN*
Word, Short
0
Write Only
S<slot>:FS<offset>.PATTERN*
DWord, Long
0
Write Only
*Multiple points can be referenced through the use of this optional syntax. For more information, refer to Digital I/O Bit Mapping.
Examples Address
Value
Description
S1:FS0.PATTERN
1
Slot 1, turn point 0 on in fail safe mode.*
S1:FS0.PATTERN (as Byte)
255
Slot 1, turn points 0-7 on in fail safe mode.*
S1:FS0.PATTERN (as Word)
0
Slot 1, turn point 0-7 off in fail safe mode.*
S1:FS0.PATTERN (as DWORD)
255
Slot 1, turn points 0-7 on in fail safe mode.*
*See Notes and Requirements above.
Fail Safe Time Addressing After communication between the host and the RTU has been lost, a time delay may be introduced before fail safe mode is engaged for the output module. This time delay can be entered by referencing FS.TIME and is specified in tenths of seconds.
Requirements None Important: The value specified in FS.TYPE is not sent to the device until FS.SET is set.
Specifications Syntax
Data Type
Range
Access
S<slot>:FS.TIME
Byte, Word, Short, DWord, Long
N/A
Write Only
Examples Address
Value
Description
S1:FS.TIME
255
Slot 1, fail safe time delay = 25.5 seconds.
S1:FS.TIME
0
Slot 1, no delay.
S1:FS.TIME
1
Slot 1, fail safe time delay = .1 seconds.
Fail Safe Set Addressing For any of the fail safe configuration parameters (type, time and pattern) to be sent to the device, FS.SET must be set. Immediately after the parameters are sent, FS.SET will be reset.
Values True = Send fail safe configurations to device False = No action www. kepware.com