The text of a manual ยท part 10 of 14
Optimation OptiLogic Driver Help, pages 79 to 88
Pages 79 to 88 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 79
Optimation OptiLogic Driver Help
79
Examples Address
Value
Description
S1:CTRIGDO1.MAXRANGE
1000
Slot 1, output 1, turn off when count = 1000.
S1:CTRIGDO2.MAXRANGE
0
Slot 1, output 2, turn off when count = 0 (from rollover).
Triggered Digital Outputs: Range Enable Enable the minimum and maximum range values for CTRIGDO (enable usage of a CTRIGDO output) by referencing CTRIGDO<output>.RANGEEN.
Requirements None.
Specifications Syntax
Data Type
Range
Access
S<slot>:CTRIGDO<output>.RANGEEN
Boolean
1-2
Write Only
Examples Address
Value
Description
S1:CTRIGDO1.RANGEEN
1
Slot 1, output 1 enabled.
S1:CTRIGDO2.RANGEEN
0
Slot 1, output 2 disabled.
4 Channel Analog Output Module
Each channel of an analog input module uses a 12 bit D/A converter to produce an analog output signal.
Subtypes OL2304
Address Types 4 Channel Analog Output 4 Channel Analog Output Range
4 Channel Analog Output Addressing Requirements As a precaution, the analog output range should be set prior to writing to an analog output channel.
Specifications Syntax
Data Type
Range
Access
S<slot>:AO<channel>
Word, Short, DWord, Long
1-4
Write Only
Examples Address
Value
Description
S1:AO2
1024 *
Slot 1, channel 2.
S1:AO4
0*
Slot 1, channel 4.
*The exact analog output value depends on voltage range, accuracy and so forth.
4 Channel Analog Output Range Addressing www. kepware.com
Page 80
Optimation OptiLogic Driver Help
80
Each channel must be configured for a specific analog output range. This is done by setting AO<channel>.RANGE.
Values 0 = 0-5 V 1 = 0-10 V 2 = +/- 5 V 3 = +/- 10 V
Requirements None.
Specifications Syntax
Data Type
Range
Access
S<slot>:AO<channel>.RANGE
Word, Short, DWord, Long
1-4
Write Only
Examples Address
Value
Description
S1:AO2.RANGE
2
Slot 1, channel 2, set voltage range to +/- 5V.
S1:AO4.RANGE
0
Slot 1, channel 4, set voltage range to 0-5V.
8 Channel Analog Input Module
Analog inputs are used to monitor the value of continuously variable field measurements. Typical analog inputs are measurements of temperature, pressure, weight, liquid level, pH, flow rate and many other "real world" parameters. Each channel of an analog input module takes an analog signal as input and uses a 12-bit A/D converter to put that analog value in digital form.
Subtypes OL2408, OL2418
8 Channel Analog Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:AI<channel>
Word, Short, DWord, Long
1-8
Read Only
Examples Address
Value
Description
S1:AI2
*
Slot 1, channel 2.
S1:AI8
*
Slot 1, channel 8.
*Values depend on input level, voltage/current ranges, accuracy and so forth.
8 Channel Analog Input Module www. kepware.com
Page 81
Optimation OptiLogic Driver Help
81
Analog inputs are used to monitor the value of continuously variable field measurements. Typical analog inputs are measurements of temperature, pressure, weight, liquid level, pH, flow rate and many other "real world" parameters. Each channel of an analog input module takes an analog signal as input and uses a 12-bit A/D converter to put that analog value in digital form.
Subtypes OL2408, OL2418
8 Channel Analog Input Addressing Specifications Syntax
Data Type
Range
Access
S<slot>:AI<channel>
Word, Short, DWord, Long
1-8
Read Only
Examples Address
Value
Description
S1:AI2
*
Slot 1, channel 2.
S1:AI8
*
Slot 1, channel 8.
*Values depend on input level, voltage/current ranges, accuracy and so forth.
Dual RS232 Port Module
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 www. kepware.com
Page 82
Optimation OptiLogic Driver Help
82 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 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] www. kepware.com
Page 83
Optimation OptiLogic Driver Help
83
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 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.
www. kepware.com
Page 84
Optimation OptiLogic Driver Help
84
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
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 www. kepware.com
Page 85
Optimation OptiLogic Driver Help
85 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 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 www. kepware.com
Page 86
Optimation OptiLogic Driver Help
86
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 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 www. kepware.com
Page 87
Optimation OptiLogic Driver Help
87 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 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 www. kepware.com
Page 88
Optimation OptiLogic Driver Help
88
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: 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 www. kepware.com