The text of a manual ยท part 7 of 14
Optimation OptiLogic Driver Help, pages 49 to 58
Pages 49 to 58 of 119
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 49
Optimation OptiLogic Driver Help
49
Button state (pressed/not pressed) can be monitored by referencing address type BTNSTATUS<button>.
Values True = pressed False = not pressed
Requirements None. Note: Button state depends on the button configuration. For more information, refer to Pushbutton Configuration Addressing.
Specifications Syntax
Data Type
Range
Access
P:BTNSTATUS<button number>
Boolean
0-3
Read Only
Examples Address
Value
Description
P:BTNSTATUS0
1
Button 0 is pressed (left most button).*
P:BTNSTATUS3
0
Button 3 is not pressed (right most button).
*See Note above.
Pushbutton Configuration Addressing Each button can be configured to either latch their state (alternate action) or hold it momentarily while its being pressed/not pressed.
Values True = alternate action False = momentary action
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:BTNCFG<button number>
Boolean
0-3
Read/Write
Examples Address
Value
Description
P:BTNCFG0
1
Button 0 is configured for alternate action.
P:BTNCFG3
0
Button 3 is configured for momentary action.
*See Note above.
Force Pushbutton State Addressing Each button can be forced to a desired state. There are three means of forcing button state. EQUALS:
Desired button state = specified state
OR:
Desired button state = (current state BITWISE OR specified state)
AND:
Desired button state = NOT(current state BITWISE AND specified state)
Values (Desired button states) True = button on ("pressed") False = button off ("not pressed")
Requirements Button must be configured for alternate action.
Specifications Below are the three means of forcing button state in detail:
www. kepware.com
Page 50
Optimation OptiLogic Driver Help
50
Syntax
Data Type
Range
Access
P:BTNFORCE<button number>.EQUALS
Boolean
0-3
Write Only
P:BTNFORCE<button number>.OR
Boolean
0-3
Write Only
P:BTNFORCE<button number>.AND
Boolean
0-3
Write Only
Examples Address
Value
Description
P:BTNFORCE0.EQUALS
1
Force button 0 state to be on.
P:BTNFORCE0.OR
1
OR current state with 1. Force button 0 state to be on.
P:BTNFORCE0.AND
1
If button 0 state is currently on, set state to off. Otherwise, do nothing.
*See Requirements above.
Indicator LED On State Addressing Each indicator LED can be forced On/Off by referencing address type INDLED<led>.ON.
Values True = on False = off
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:INDLED<led number>.ON
Boolean
0-5
Write Only
Examples Address
Value
Description
P:INDLED0.ON
1
Turn indicator LED 0 on (upper left LED).
P:INDLED5.ON
1
Turn indicator LED 5 on (bottom right LED).
Indicator LED Flash State Addressing Each indicator LED can be forced to flash On/Off by referencing address type INDLED<led>.FLASH.
Values True = flash on False = flash off
Requirements Indicator LED ON state must be set for the corresponding LED.
Specifications Syntax
Data Type
Range
Access
P:INDLED<led number>.FLASH
Boolean
0-5
Write Only
Examples Address
Value
Description
P:INDLED1.FLASH
1
Flash indicator LED 1 (upper right LED).*
P:INDLED4.FLASH
1
Flash indicator LED 4 (lower left LED).*
*See Requirements above.
OL3420 Operator Panel www. kepware.com
Page 51
Optimation OptiLogic Driver Help
51
The OL3420 Operator Panel consists of 4 user definable pushbuttons with built-in LEDs and a 2 line x 20 character backlit LCD display
Subtypes OL3420
Address Types Pushbutton LED On State Pushbutton LED Flash State Pushbutton LED Separation State Pushbutton State Pushbutton Configuration Force Pushbutton State Alphanumeric Display
Pushbutton LED On State Addressing Each button LED can be forced On/Off without the button being pressed. This can be achieved by referencing address type BTNLED<button>.ON.
Values True = on False = off
Requirements Button LED Separation state must be set. Button(s) must also be configured for momentary action. For more information, refer to PushButton Configuration.
Specifications Syntax
Data Type
Range
Access
P:BTNLED<button number>.ON
Boolean
0-3
Write Only
Examples Address
Value
Description
P:BTNLED0.ON
1
Turn button 0 LED on (left most button).*
P:BTNLED3.ON
1
Turn button 3 LED on (right most button).*
*See Requirements above.
Pushbutton LED Flash State Addressing Each button LED can be forced to flash On/Off without the button being pressed. This can be achieved by referencing address type BTNLED<button>.FLASH.
Values True = flash on False = flash off www. kepware.com
Page 52
Optimation OptiLogic Driver Help
52
Requirements Button LED ON state must be set for the corresponding button and button LED Separation state must be set. Button(s) must also be configured for momentary action. For more information, refer to PushButton Configuration.
Specifications Syntax
Data Type
Range
Access
P:BTNLED<button number>.FLASH
Boolean
0-3
Write Only
Examples Address
Value
Description
P:BTNLED0.FLASH
1
Flash button 0 LED (left most button).*
P:BTNLED3.FLASH
1
Flash button 3 LED (right most button).*
*See Requirements above.
Pushbutton LED Separation State Addressing When LED Separation is set, one is capable of controlling the on and flash state of individual button LEDs (see Pushbutton LED On and Flash State Addressing above).
Values True = separation on False = separation off
Requirements None. Syntax
Data Type
Range
Access
P:LEDSEP
Boolean
N/A
Read/Write
Pushbutton State Addressing Button state (pressed/not pressed) can be monitored by referencing address type BTNSTATUS<button>.
Values True = pressed False = not pressed
Requirements None. Note: Button state depends on the button configuration. See Pushbutton Configuration Addressing below.
Specifications Syntax
Data Type
Range
Access
P:BTNSTATUS<button number>
Boolean
0-3
Read Only
Examples Address
Value
Description
P:BTNSTATUS0
1
Button 0 is pressed (left most button).*
P:BTNSTATUS3
0
Button 3 is not pressed (right most button).
*See Note above.
Pushbutton Configuration Addressing Each button can be configured to either latch their state (alternate action) or hold it momentarily while its being pressed/not pressed.
Values True = alternate action False = momentary action www. kepware.com
Page 53
Optimation OptiLogic Driver Help
53 Requirements None.
Specifications Syntax
Data Type
Range
Access
P:BTNCFG<button number>
Boolean
0-3
Read/Write
Examples Address
Value
Description
P:BTNCFG0
1
Button 0 is configured for alternate action.
P:BTNCFG3
0
Button 3 is configured for momentary action.
*See Note above.
Force Pushbutton State Addressing Each button can be forced to a desired state. There are three ways to force button state. EQUALS:
Desired button state = specified state
OR:
Desired button state = (current state BITWISE OR specified state)
AND:
Desired button state = NOT(current state BITWISE AND specified state)
Values (Desired button states) True = button on ("pressed") False = button off ("not pressed")
Requirements Button must be configured for alternate action.
Specifications Below are the three means of forcing button state in detail. Syntax
Data Type
Range
Access
P:BTNFORCE<button number>.EQUALS
Boolean
0-3
Write Only
P:BTNFORCE<button number>.OR
Boolean
0-3
Write Only
P:BTNFORCE<button number>.AND
Boolean
0-3
Write Only
Examples Address
Value
Description
P:BTNFORCE0.EQUALS
1
Force button 0 state to be on.
P:BTNFORCE0.OR
1
OR current state with 1. Force button 0 state to be on.
P:BTNFORCE0.AND
1
If button 0 state is currently on, set state to off. Otherwise, do nothing.
*See Requirements above.
Alphanumeric Display Addressing There are two lines of display for alphanumeric strings of length 20 characters or less.
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:LINE<line number>
String
0-1
Write Only
Syntax
Data Type
Range
Access
P:LINE<line number>
String
0-1
Write Only
Examples www. kepware.com
Page 54
Optimation OptiLogic Driver Help
54
OL3440 Operator Panel
The OL3440 Operator Panel consists of a 4 line x 20 character backlit LCD display
Subtypes OL3440
Alphanumeric Display Addressing There are four lines of display for alphanumeric strings of length 20 characters or less.
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:LINE<line number>
String
0-3
Write Only
Examples Address
Value
Description
P:LINE0
"hello"
Set line 0 (top line) string to "hello".
P:LINE3
"world"
Set line 3 (bottom line) string to "world".
OL3850 Operator Panel
The OL3850 Operator Panel consists of the following: 2 line x 20 character backlit LCD display, 5 user definable pushbuttons with built-in LEDs, 3 color coded indicator light bars and a numeric keypad. This panel can be used to display messages, accept numeric data input, display status indications and select functions.
www. kepware.com
Page 55
Optimation OptiLogic Driver Help
55
Subtypes OL3850
Address Types Pushbutton LED On State Pushbutton LED Flash State Pushbutton LED Separation State Pushbutton State Pushbutton Configuration Force Pushbutton State Light Bar On State Light Bar Flash State Alphanumeric Display Keypad Data Keypad Data Available Keypad Arrow Max Keypad Arrow Min
Pushbutton LED On State Addressing Each button LED can be forced On/Off without the button being pressed. This can be achieved by referencing address type BTNLED<button>.ON.
Values True = on False = off
Requirements Button LED Separation state must be set. Button(s) must also be configured for momentary action. For more information, refer to PushButton Configuration Addressing .
Specifications Syntax
Data Type
Range
Access
P:BTNLED<button number>.ON
Boolean
0-4
Write Only
Examples Address
Value
Description
P:BTNLED0.ON
1
Turn button 0 LED on (left most button).*
P:BTNLED4.ON
1
Turn button 4 LED on (right most button).*
*See Requirements above.
Pushbutton LED Flash State Addressing Each button LED can be forced to flash On/Off without the button being pressed. This can be achieved by referencing address type BTNLED<button>.FLASH.
Values True = flash on False = flash off
Requirements Button LED ON state must be set for the corresponding button and button LED Separation state must be set. Button(s) must also be configured for momentary action. For more information, refer to PushButton Configuration Addressing. Syntax
Data Type
Range
Access
P:BTNLED<button number>.FLASH
Boolean
0-4
Write Only
Examples Address
Value
Description
P:BTNLED0.FLASH
1
Flash button 0 LED (left most button).* www. kepware.com
Page 56
Optimation OptiLogic Driver Help
56
P:BTNLED4.FLASH
1
Flash button 4 LED (right most button).*
*See Requirements above.
Pushbutton LED Separation State Addressing When LED Separation is set, one is capable of controlling the on and flash state of individual button LEDs. For more information, refer to "Pushbutton LED On and Flash State Addressing" above.
Values True = separation on False = separation off
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:LEDSEP
Boolean
N/A
Read/Write
Pushbutton State Addressing Button state (pressed/not pressed) can be monitored by referencing address type BTNSTATUS<button>.
Values True = pressed False = not pressed
Requirements None. Note: Button state depends on the button configuration. For more information, refer to Pushbutton Configuration Addressing below.
Specifications Syntax
Data Type
Range
Access
P:BTNSTATUS<button number>
Boolean
0-4
Read Only
Examples Address
Value
Description
P:BTNSTATUS0
1
Button 0 is pressed (left most button).*
P:BTNSTATUS4
0
Button 4 is not pressed (right most button).
*See Note above.
Pushbutton Configuration Addressing Each button can be configured to either latch their state (alternate action) or hold it momentarily while its being pressed/not pressed.
Values True = alternate action False = momentary action
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:BTNCFG<button number>
Boolean
0-4
Read/Write
Examples Address
Value
Description
P:BTNCFG0
1
Button 0 is configured for alternate action.
www. kepware.com
Page 57
Optimation OptiLogic Driver Help
57 P:BTNCFG4
0
Button 4 is configured for momentary action.
Force Pushbutton State Addressing Each button can be forced to a desired state. There are three ways to force button state. EQUALS:
Desired button state = specified state
OR:
Desired button state = (current state BITWISE OR specified state)
AND:
Desired button state = NOT(current state BITWISE AND specified state)
Values (Desired button states) True = button on ("pressed") False = button off ("not pressed")
Requirements Button must be configured for alternate action.
Specifications Below are the three means of forcing button state in detail: Syntax
Data Type
Range
Access
P:BTNFORCE<button number>.EQUALS
Boolean
0-4
Write Only
P:BTNFORCE<button number>.OR
Boolean
0-4
Write Only
P:BTNFORCE<button number>.AND
Boolean
0-4
Write Only
Examples Address
Value
Description
P:BTNFORCE0.EQUALS
1
Force button 0 state to be on.*
P:BTNFORCE0.OR
1
OR current state with 1. Force button 0 state to be on.*
P:BTNFORCE0.AND
1
If button 0 state is currently on, set state to off. otherwise, do nothing.*
*See Requirements above.
Light Bar On State Addressing Each light bar can be forced On/Off by referencing address type LITEBAR<bar>.ON.
Values True = on False = off
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:LITEBAR<light bar>.ON
Boolean
0-2
Write Only
Examples Address
Value
Description
P:LITEBAR0.ON
1
Turn light bar 0 on (left most bar).
P:LITEBAR2.ON
1
Turn light bar 2 on (right most bar).
Light Bar Flash State Addressing Each light bar can be forced to flash On/Off by referencing address type LITEBAR<bar>.FLASH.
Values True = flash on False = flash off
Requirements Light Bar ON state must be set for the corresponding light bar.
www. kepware.com
Page 58
Optimation OptiLogic Driver Help
58
Specifications Syntax
Data Type
Range
Access
P:LITEBAR<light bar>.FLASH
Boolean
0-2
Write Only
Examples Address
Value
Description
P:LITEBAR0.FLASH
1
Flash light bar 0 LED (left most bar).*
P:LITEBAR2.FLASH
1
Flash light bar 2 LED (right most bar).*
*See Requirements above.
Alphanumeric Display Addressing There are two lines of display for alphanumeric strings of length 20 characters or less. Keypad data may also be inserted into the text string by using the caret (^) as a placeholder for each digit (including the decimal point) of the keypad data.
Requirements None.
Specifications Syntax
Data Type
Range
Access
P:LINE<line number>
String
0-1
Write Only
Examples Address
Value
Description
P:LINE0
"hello"
Set line 0 (top line) string to "hello".
P:LINE1
"world"
Set line 1 (bottom line) string to "world".
P:LINE0
"^^^^^^^"
If keypad data = 1234.56, then line 0 string will be "1234.56".*
*For more information, refer to "Keypad Data Addressing" below.
Keypad Data Addressing Numeric data can be read from (entered via keypad or this address) and written to (via this address) the panel keypad. Float precision can be specified by appending a bit (0 to 10 allowed) to the KDATA address. This will represent the floating point precision on any writes to the device. If no precision is specified (the default case), the precision will be set such that the number of digits in the integer and fractional parts sums up to 10. If a precision is specified such that the 10-digit limit is exceeded, the precision will be set to the default value previously discussed. Note that the value written to the device may differ from the value displayed in the client. This may be due to floating point round off and truncation errors from the driver, client or both. For more information on floating point precision, refer to Device Setup. Note: Keypad data may be altered using the arrows located on the keypad. Upper and lower bounds set by Arrow Max and Arrow Min respectively, will only limit the data set by the arrows, not the data set in KDATA. Only the data type can place constraints on the upper and lower limits of the keypad data when set using KDATA.
Specifications Syntax
Data Type
Range
Access
P:KDATA
Double, Float, DWord
N/A
Read/Write
P:KDATA.<precision>
Double, Float, DWord
N/A
Read/Write
Examples (Writes) Address
Value
Description
P.KDATA
10.123456
10.123456 will be written to the device.
P:KDATA.4 as a float
10.123456
10.1235 will be written to the device.
P:KDATA
9999999999
9999999999 will be written to the device.
Keypad Data Available Addressing To determine if new keypad data has been entered at the panel, reference KDATAREADY. This flag can be cleared by writing to KDATA.
Values www. kepware.com