Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual ยท part 11 of 14

Optimation OptiLogic Driver Help, pages 89 to 98

Pages 89 to 98 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 89

Optimation OptiLogic Driver Help

89 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

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 www. kepware.com

Page 90

Optimation OptiLogic Driver Help

90

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

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 www. kepware.com

Page 91

Optimation OptiLogic Driver Help

91

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

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.

www. kepware.com

Page 92

Optimation OptiLogic Driver Help

92

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

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 www. kepware.com

Page 93

Optimation OptiLogic Driver Help

93 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.

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 www. kepware.com

Page 94

Optimation OptiLogic Driver Help

94

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).*

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 www. kepware.com

Page 95

Optimation OptiLogic Driver Help

95 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.

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.

www. kepware.com

Page 96

Optimation OptiLogic Driver Help

96

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.

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 www. kepware.com

Page 97

Optimation OptiLogic Driver Help

97

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 True = new data has been entered False = all data has been read from driver, no new data Syntax

Data Type

Range

Access

P:KDATAREADY

Boolean

N/A

Read Only

Keypad Arrow Max Addressing Panel keypad data entered via the arrows, can be upper bounded by referencing ARROW.MAX. Any keypad data entered above this max will automatically get set to this max value. Note: Initially, before ARROW.MAX is set, the upper limit internally to the device is 9999999999. When the limit is set, keypad data cannot exceed the size of ARROW.MAX which is 32 bits (DWord).

Specifications Syntax

Data Type

Range

Access

P:ARROW.MAX

DWord

N/A

Write Only

Keypad Arrow Min Addressing Panel keypad data entered via the arrows, can be lower bounded by referencing ARROW.MIN. Any keypad data entered below this min will automatically get set to this min value. Note: Initially, before ARROW.MIN is set, the lower limit internally to the device is 0.

Specifications Syntax

Data Type

Range

Access

P:ARROW.MIN

DWord

N/A

Write Only

Base RS232 Port www. kepware.com

Page 98

Optimation OptiLogic Driver Help

98

The Ethernet Base contains an RS232 serial port. Both the transmit buffer and receive buffer of the driver are 48 bytes in size. Likewise, the corresponding tags can be a maximum of 48 bytes. Incoming bytes are appended to the receive buffer as long as they are received in proper time. This time period depends on the baud rate and is based on a 20-character delay using a 20 ms resolution. 300 Baud => 660 ms 1200 Baud => 160 ms 2400 Baud => 80 ms 4800 Baud => 40 ms 9600 Baud => 20 ms 19200 Baud => 20 ms For a 4800 baud link, bytes would be appended to the receive buffer as long as they were received within 40 ms of the last byte sent. After 40 ms, any incoming bytes are treated as a new stream. The receive buffer would clear and only contain these new bytes. If the receive buffer is full and additional bytes are received within the proper time frame, the buffer will reset with these additional bytes. The first 48 bytes will be lost. Below is a list of possible configurations: 1. Baud rates: 300, 1200, 2400, 4800, 9600 and 19200. 2. Data bits: 7 or 8 3. Parity: none, odd or even 4. Stop bits: 1, 1.5 or 2 An RJ45 connector is required.

Subtypes OL4054, OL4058

Address Types Serial Input: Data Serial Input: Number of Received Bytes Serial Input: Parity Error Serial Output: Data Serial Output: Number of Bytes Sent Serial Port Configuration: Baud Rate Serial Port Configuration: #Data Bits Serial Port Configuration: Parity Serial Port Configuration: #Stop Bits www. kepware.com