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

The text of a manual ยท part 6 of 14

Optimation OptiLogic Driver Help, pages 39 to 48

Pages 39 to 48 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 39

Optimation OptiLogic Driver Help

39 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 Serial Port Configuration: Set

Serial Input: Data Addressing To receive serial data, reference address type SI<port>.DATA. Note: The default configuration parameters are 300, n, 8 and 1.

Specifications Syntax

Data Type

Range

Access

B:SI<port>.DATA [r][c]*

Byte Array, Char Array

0

Read Only

B:SI<port>.DATA

String

0

Read Only

*To access as an array, [row][column] form is required. For example, DATA [1][24] would display 24 ASCII bytes in array notation: [x1, x2, x3..x24].

Examples Address

Value

Description

B:SI0.DATA

"hello" port 0 input data viewed as a string

B:SI0.DATA [2][2]

[105, 105][105, 105] port 0 input data in array form. In string form this would equate to "iiii"

Serial Input: Number of Received Bytes Addressing The number of received serial bytes (number of bytes in SI<port>.DATA. can be accessed by referencing address type SI<port>.NUMBYTES. If bytes are received within the timeout period mentioned above and are therefore appended to the input DATA buffer, NUMBYTES will reflect the total number of bytes in the input DATA buffer and not the number of bytes received on an individual block read. NUMBYTES will reset upon receiving a new stream.

Requirements None

Specifications www. kepware.com

Page 40

Optimation OptiLogic Driver Help

40

Syntax

Data Type

Range

Access

B:SI<port>:NUMBYTES

Byte, Word, Short, DWord, Long

0

Read Only

Examples Address

Value

Description

B:SI0.NUMBYTES

0 port 0 input, no bytes in input DATA buffer

B:SI0.NUMBYTES

5 port 0 input, 5 bytes in input DATA buffer

Serial Input: Parity Error Addressing Reference SI<port>.PARITYERR to determine whether a parity error occurred on the last block read of the serial input port.

Values True = Parity error occurred False = No parity error occurred

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SI<port>.PARITYERR

Boolean

0

Read Only

Examples Address

Value

Description

B:.SI0.PARITYERR

0 port 0 input, no error

B:SI0.PARITYERR

1 port 0 input, parity error occurred

Serial Output: Data Addressing To transmit serial data, reference address type SO<port>.DATA. Note: The default configuration parameters are 300, n, 8 and 1.

Specifications Syntax

Data Type

Range

Access

B:SO<port>.DATA [r][c]*

Byte Array, Char Array

0

Write Only

B:SO<port>.DATA

String

0

Write Only

*To access as an array, [row][column] form is required. For example, DATA [1][24] would send 24 ASCII bytes in array notation: [x1, x2, x3..x24].

Examples Address

Value

Description

B:SO0.DATA

"hello" port 0 output, transmit "hello"

B:SO0.DATA [2][2]

[105, 105][105, 105] port 0 output data in array form. In string form this would equate to transmitting "iiii"

Serial Output: Number of Bytes Sent Reference SO<port>.BYTESSENT to determine how many bytes were sent on the last transmission. This value is available after transmission of serial data.

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SO<port>.BYTESSENT

Byte, Word, Short, DWord, Long

0

Read Only

Examples www. kepware.com

Page 41

Optimation OptiLogic Driver Help

41 Address

Value

Description

B:SO0.BYTESSENT

0 port 0 output, no bytes sent on last transmission

B:SO0.BYTESSENT

47 port 0 output, 47 bytes sent

Serial Port Configuration: Baud Rate To configure the baud rate for a serial port, reference SCFG<port>.BAUD

Values 1 = 300 2 = 1200 3 = 2400 4 = 4800 5 = 9600 6 = 19200 Note: The default value is 300 baud.

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SCFG<port>.BAUD

Byte, Word, Short, DWord, Long

0

Write Only

Examples Address

Value

Description

B:SCFG0.BAUD

4 port 0, baud = 4800

B:SCFG0.BAUD

6 port 0, baud = 19200

Serial Port Configuration: #Data Bits To configure the number of data bits for a serial port, reference SCFG<port>.DATABITS

Values 7 or 8 Note: The default value is 8 data bits.

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SCFG<port>.DATABITS

Byte, Word, Short, DWord, Long

0

Write Only

Examples Address

Value

Description

B:SCFG0.DATABITS

7 port 0 configured for 7 data bits

B:SCFG0.DATABITS

8 port 0 configured for 8 data bits

Serial Port Configuration: Parity To configure the parity for a serial port, reference SCFG<port>.BAUD

Values 0 = none 1 = odd 2 = even Note: The default value is none.

Requirements: None www. kepware.com

Page 42

Optimation OptiLogic Driver Help

42

Specifications Syntax

Data Type

Range

Access

B:SCFG<port>.PARITY

Byte, Word, Short, DWord, Long

0

Write Only

Examples Address

Value

Description

B:SCFG0.PARITY

0 port 0 configured for no parity

B:SCFG0.PARITY

2 port 0 configured for even parity

Serial Port Configuration: #Stop Bits To configure the number of stop bits for a serial port, reference SCFG<port>.STOPBITS

Values 1=1 2=2 3 = 1.5 Note: The default value is 1.

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SCFG<port>.STOPBITS

Byte, Word, Short, DWord, Long

0

Write Only

Examples Address

Value

Description

B:SCFG0.STOPBITS

1 port 0 configured for 1 stop bit

B:SCFG0.STOPBITS

3 port 0 configured for 1.5 stop bits

Serial Port Configuration: Set For any of the serial port configuration parameters (baud, parity and so forth) to be sent to the device, SCFG.SET must be set. Immediately after the parameters are sent, SCFG.SET will be reset.

Values True = Send serial port configurations to device False = No action

Requirements None

Specifications Syntax

Data Type

Range

Access

B:SCFG<port>.SET

Boolean

N/A

Write Only

Dual RS232 Port Module www. kepware.com

Page 43

Optimation OptiLogic Driver Help

43

The OL2602 is a dual RS232 port serial module. 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. 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: 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 If using the OL4058 RTU, a maximum of one OL2602 modules may be used and it must be placed in slot 0. For the OL4054 RTU, two OL2602 may be used and they must be in either slot 0 or 1. Port 1 is the top terminal strip, Port 2 is the bottom terminal strip. Below is the pin assignments: 1: Signal ground 2: TX 3: RX

Subtypes OL2602

Address Types Serial Input: Data www. kepware.com

Page 44

Optimation OptiLogic Driver Help

44

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 Serial Port Configuration: Set

Serial Input: Data Addressing To receive serial data, reference address type SI<port>.DATA. Note: The default configuration parameters are 9600, n, 8 and 1.

Specifications Syntax

Data Type

Range

Access

S<slot>:SI<port>.DATA [r][c]*

Byte Array, Char Array

1-2

Read Only

S<slot>:SI<port>.DATA

String

1-2

Read Only

*To access as an array, [row][column] form is required. For example, DATA [1][24] would display 24 ASCII bytes in array notation: [x1, x2, x3..x24])

Examples Address

Value

Description

S0:SI1.DATA

"hello"

Slot 0, port 1input data viewed as a string.

S0:SI2.DATA [2][2]

[105, 105] Slot 0, port 2 input data in array form. In string form this would equate to "iiii". [105, 105]

Serial Input: Number of Received Bytes Addressing The number of received serial bytes (number of bytes in SI<port>.DATA) can be accessed by referencing address type SI<port>.NUMBYTES. If bytes are received within the timeout period mentioned above and are therefore appended to the input DATA buffer, NUMBYTES will reflect the total number of bytes in the input DATA buffer and not the number of bytes received on an individual block read. NUMBYTES will reset upon receiving a new stream.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SI<port>.NUMBYTES

Byte, Word, Short, DWord, Long

1-2

Read Only

Examples Address

Value

Description

S1:SI1.NUMBYTES

0

Slot 1, port 1 input, no bytes in input DATA buffer

S1:SI2.NUMBYTES

5

Slot1, port2 input, 5 bytes in input DATA buffer

Serial Input: Parity Error Addressing Reference SI<port>.PARITYERR to determine whether a parity error occurred on the last block read of the serial input port.

Values True = Parity error occurred False = No parity error occurred

Requirements None

Specifications www. kepware.com

Page 45

Optimation OptiLogic Driver Help

45 Syntax

Data Type

Range

Access

S<slot>:SI<port>.PARITYERR

Boolean

1-2

Read Only

Examples Address

Value

Description

S1:SI1.PARITYERR

0

Slot 1, port 1 input, no error.

S1:SI2.PARITYERR

1

Slot 1, port 2 input, parity error occurred.

Serial Output: Data Addressing To transmit serial data, reference address type SO<port>.DATA. Note: The default configuration parameters are 9600, n, 8 and 1.

Specifications Syntax

Data Type

Range

Access

S<slot>:SO<port>.BYTESSENT

Byte, Word, Short, DWord, Long

1-2

Read Only

*To access as an array, [row][column] form is required. For example, DATA [1][24] would send 24 ASCII bytes in array notation: [x1, x2, x3..x24])

Examples Address

Value

Description

S0:SO1.DATA

"hello"

Slot 0, port 1output, transmit "hello".

S0:SO2.DATA [2][2]

[105, 105][105, 105]

Slot 0, port 2 output data in array form. In string form this would equate to transmitting "iiii".

Serial Output: Number of Bytes Sent Reference SO<port>.BYTESSENT to determine how many bytes were sent on the last transmission. This value is available after transmission of serial data.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SO<port>.BYTESSENT

Byte, Word, Short, DWord, Long

1-2

Read Only

Examples Address

Value

Description

S1:SO1.BYTESSENT

0

Slot 1, port 1 output, no bytes sent on last transmission.

S1:SO1.BYTESSENT

47

Slot 1, port 1 output, 47 bytes sent.

Serial Port Configuration: Baud Rate To configure the baud rate for a serial port, reference SCFG<port>.BAUD

Values 2 = 1200 3 = 2400 4 = 4800 5 = 9600 6 = 19200 Note: The default value is 9600 baud.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SCFG<port>.BAUD

Byte, Word, Short, DWord, Long

1-2

Write Only www. kepware.com

Page 46

Optimation OptiLogic Driver Help

46

Examples Address

Value

Description

S1:SCFG1.BAUD

4

Slot 1, port 1, baud = 4800.

S1:SCFG2.BAUD

6

Slot 1, port 2, baud = 19200.

Serial Port Configuration: #Data Bits To configure the number of data bits for a serial port, reference SCFG<port>.DATABITS

Values 7 or 8 Note: The default value is 8 data bits.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SCFG<port>.DATABITS

Byte, Word, Short, DWord, Long

1-2

Write Only

Examples Address

Value

Description

S1:SCFG1.DATABITS

7

Slot 1, port 1 configured for 7 data bits.

S1:SCFG2.DATABITS

8

Slot 1, port 2 configured for 8 data bits.

Serial Port Configuration: Parity To configure the parity for a serial port, reference SCFG<port>.BAUD

Values 0 = none 1 = odd 2 = even Note: The default value is none.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SCFG<port>.PARITY

Byte, Word, Short, DWord, Long

1-2

Write Only

Examples Address

Value

Description

S1:SCFG1.PARITY

0

Slot 1, port 1 configured for no parity.

S1:SCFG2.PARITY

2

Slot 1, port 2 configured for even parity.

Serial Port Configuration: #Stop Bits To configure the number of stop bits for a serial port, reference SCFG<port>.STOPBITS

Values 1=1 2=2 3 = 1.5 Note: The default value is 1.

Requirements None

Specifications www. kepware.com

Page 47

Optimation OptiLogic Driver Help

47 Syntax

Data Type

Range

Access

S<slot>:SCFG<port>.STOPBITS

Byte, Word, Short, DWord, Long

1-2

Write Only

Examples Address

Value

Description

S1:SCFG1.STOPBITS

1

Slot 1, port 1 configured for 1 stop bit.

S1:SCFG2.STOPBITS

3

Slot 1, port 2 configured for 1.5 stop bits.

Serial Port Configuration: Set For any of the serial port configuration parameters (baud, parity and so forth) to be sent to the device, SCFG.SET must be set. Immediately after the parameters are sent, SCFG.SET will be reset.

Values True = Send serial port configurations to device False = No action

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:SCFG<port>.SET

Boolean

N/A

Write Only

OL3406 Operator Panel

The OL3406 Operator Panel consists of 4 user definable pushbuttons with built-in LEDs and 6 indicator LEDs.

Subtypes OL3406

Address Types Pushbutton LED On State Pushbutton LED Flash State Pushbutton LED Separation State Pushbutton State Pushbutton Configuration Force Pushbutton State Indicator LED On State Indicator LED Flash State

Pushbutton LED On State Addressing www. kepware.com

Page 48

Optimation OptiLogic Driver Help

48

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 also be set. Button(s) must be configured for momentary action. For more information, refer to PushButton Configuration Addressing.

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.

Specifications Syntax

Data Type

Range

Access

P:LEDSEP

Boolean

N/A

Read/Write

Pushbutton State Addressing www. kepware.com