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

The text of a manual ยท part 9 of 14

Optimation OptiLogic Driver Help, pages 69 to 78

Pages 69 to 78 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 69

Optimation OptiLogic Driver Help

69

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

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

Page 70

Optimation OptiLogic Driver Help

70

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

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

2 Channel High Speed Counter Module www. kepware.com

Page 71

Optimation OptiLogic Driver Help

71

The OL2252 Dual High Speed Pulse Counter module has two 0-15 kHz pulse counter inputs. Each input is independent of the other. There are a number of configuration options available. See OL2252 manual for details. Of the 10 inputs, 6 can be configured for general-purpose input and is referred to in this driver as CDI (counter digital input). Both channels have a software reset and an optional hardware reset as well as a software enable and optional hardware enable.

Subtypes OL2252

Address Types Channel Pulse Count Channel Enable (Software) Channel Reset (Software) Channel Enable (Hardware) Channel Reset (Hardware) Channel Debounce Count 8 Digital Input

Channel Pulse Count Addressing The pulse count for each channel can be referenced using address type C<channel>.COUNT.

Requirements Channel counter must be enabled either by software or hardware for counter to pulse count.

Specifications Syntax

Data Type

Range

Access

S<slot>:C<channel>.COUNT

DWord, Long

1-2

Read Only

Examples Address

Value

Description

S1:C1.COUNT

0

Slot 1, channel 1 pulse count is 0.*

S1:C2.COUNT

1000

Slot 1, channel 2 pulse count is 1000.*

*See Requirements above.

Channel Enable (Software) Addressing Channels can be enabled/disabled through software by referencing address type C<channel>.EN.

Values True = channel enabled False = channel disabled* *Provided channel is not currently hardware enabled.

Requirements None

Specifications Address

Value

Description

S1:C1.COUNT

0

Slot 1, channel 1 pulse count is 0.*

S1:C2.COUNT

1000

Slot 1, channel 2 pulse count is 1000.*

Examples www. kepware.com

Page 72

Optimation OptiLogic Driver Help

72

Address

Value

Description

S1:C1.EN

0

Slot 1, ch1 not software enabled.

S1:C2.EN

1

Slot 1, ch2 software enabled.

Channel Reset (Software) Addressing A channel's pulse count can be reset through software by referencing address type C<channel>.RES.

Values True = channel pulse count reset False = channel pulse counting* *Provided channel is not currently in a hardware reset.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:C<channel>.RES

Boolean

1-2

Write Only

Examples Address

Value

Description

S1:C1.RES

0

Slot 1, ch1 not software reset.

S1:C2.RES

1

Slot 1, ch2 software reset.

Channel Enable (Hardware) Addressing Channels can be enabled by an external enable signal. Enable/disable this capability by referencing address type CCFG<channel>.HEN.

Values True = allow hardware enable of channel False = don't allow hardware enable of channel

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.HEN

Boolean

1-2

Write Only

Examples Address

Value

Description

S1:CCFG1.HEN

0

Slot 1, ch1 hardware enable not allowed.

S1:CCFG2.HEN

1

Slot 1, ch2 hardware enabled allowed.

Channel Reset (Hardware) Addressing A channel's pulse count can be reset by an external reset signal. Enable/disable this capability by referencing address type CCFG<channel>.HRES.

Values True = allow hardware reset of pulse count False = don't allow hardware reset of pulse count

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.HRES

Boolean

1-2

Write Only

Examples www. kepware.com

Page 73

Optimation OptiLogic Driver Help

73 Address

Value

Description

S1:CCFG1.HRES

0

Slot 1, ch1 hardware reset not allowed.

S1:CCFG2.HRES

1

Slot 1, ch2 hardware reset allowed.

Channel Debounce Count Addressing CCFG<channel>.DBNC establishes the maximum pulse frequency that a channel will count.

Values 2 = 15 kHz 4 = 10 kHz 8 = 5 kHz 16 = 2.5 kHz 40 = 1 kHz Note: The default value is 15 kHz.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.DBNC

Byte, Word, Short, DWord, Long

1-2

Write Only

Examples Address

Value

Description

S1:CCFG1.DBNC

40

Slot 1, ch1 max pulse freq set to 1 kHz.

S1:CCFG2.DBNC

2

Slot 1, ch2 max pulse freq set to 15 kHz.

8 Digital Input Addressing The counter's general-purpose inputs are referenced using address type CDI.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CDI<point>

Boolean

0-7

Read Only

S<slot>:CDI<offset>*

Byte, Word, Short, 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:CDI0

1

Slot 1, point 0 (terminal 10) is on.

S1:CDI0 (as Byte)

0

Slot 1, byte 0 (points 0-7 are all off).

High Speed Counter Module www. kepware.com

Page 74

Optimation OptiLogic Driver Help

74

The OL2258 High Speed Pulse Counter module provides for direct pulse counting for a variety of high-speed pulse interface applications. Typical applications include motion control, metering and velocity measurement. The OL2258 can be configured to operate in one of three modes: 1. Pulse & Direction (up to 80 kHz input). 2. Up/Down Count (up to 80 kHz input). 3. Quadrature (up to 160 kHz input). Besides the counter's current count value, the pulse count in the most recent frequency period (user configurable) is also accessible. The OL2258 also contains 2 digital outputs, triggered on when the pulse count reaches the output's minimum range and triggered off when it reaches the output's maximum range.

Subtypes OL2258

Address Types Channel Pulse Count Channel Frequency Data Channel Status: A Channel Status: B Channel Status: Z Channel Status: LS Channel Configuration: Count Type Channel Configuration: Frequency Period Channel Configuration: Preset Channel Configuration: Force Preset Channel Configuration: Hold Count Channel Configuration: Z Preset Enable Channel Configuration: LS Preset Enable Triggered Digital Outputs Triggered Digital Outputs: Minimum Range Triggered Digital Outputs: Maximum Range Triggered Digital Outputs: Range Enable

Channel Pulse Count The pulse count for each channel can be referenced using address type C<channel>.COUNT.

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:C<channel>.COUNT

DWord, Long

1

Read Only

Examples Address

Value

Description

S1:C1.COUNT

0

Slot 1, channel 1 pulse count is 0.

S1:C1.COUNT

1000

Slot 1, channel 1 pulse count is 1000.

Channel Frequency Data A pulse count over a preset period of time (C<channel>.COUNT @ (start + period)-C<channel>.COUNT @ start) can be accessed through C<channel>.FREQDATA.

Requirements C<channel>.FREQPER determines the period and should be set before accessing C<channel>.FREQDATA.

Specifications www. kepware.com

Page 75

Optimation OptiLogic Driver Help

75 Syntax

Data Type

Range

Access

S<slot>:C<channel>.FREQDATA

Word, Short, DWord, Long

1

Read Only

Examples Address

Value

Description

S1:C1.FREQDATA

60000

Slot 1, ch1, if FREQPER = 1 sec, pulse is 60kHz.

S1:C1.FREQDATA

16000

Slot 1, ch1, if FREQPER = 200ms, pulse is 80kHz.

Channel Status: A Pulse input A can be referenced through CSTS<channel>.A. Count type defines the meaning of this input as follows: Count Type

Input Definition

Pulse & Direction

Pulse Input

Up/Down Count

Up Pulse Input

Quadrature Encoder Input

Pulse Input

Note: For more information, refer to OptiLogic I/O Modules Manual.

Values True = Pulse level high False = Pulse level low

Requirements CCFG<channel>.COUNTTYPE determines the meaning of this input and should be set before accessing CSTS<channel>.A

Specifications Syntax

Data Type

Range

Access

S<slot>:CSTS<channel>.A

Boolean

1

Read Only

Channel Status: B Pulse input B can be referenced through CSTS<channel>.B. Count type defines the meaning of this input as follows: Count Type

Input Definition

Pulse & Direction

Direction Input

Up/Down Count

Down Pulse Input

Quadrature Encoder Input

Pulse Input

Note: For more information, refer to OptiLogic I/O Modules Manual.

Values True = Pulse level high False = Pulse level low

Requirements CCFG<channel>.COUNTTYPE determines the meaning of this input and should be set before accessing CSTS<channel>.B

Specifications Syntax

Data Type

Range

Access

S<slot>:CSTS<channel>.B

Boolean

1

Read Only

Channel Status: Z Optional input Z provides a means of automatically resetting the count value to a user-defined preset value. Reference Z through CSTS<channel>.Z.

Values True = If ZPRESETEN set, send PRESET to device. Otherwise, take no action. False = No action www. kepware.com

Page 76

Optimation OptiLogic Driver Help

76

Requirements CCFG<channel>.ZPRESETEN must be set in order to enable use of Z in presetting counter

Specifications Syntax

Data Type

Range

Access

S<slot>:CSTS<channel>.Z

Boolean

1

Read Only

Channel Status: LS Optional limit switch input LS provides a means of automatically resetting the count value to a user-defined preset value. Reference LS through CSTS<channel>.LS.

Values True = If LSPRESETEN set, send PRESET to device. Otherwise, take no action. False = No action

Requirements CCFG<channel>.LSPRESETEN must be set in order to enable use of LS in presetting counter

Specifications Syntax

Data Type

Range

Access

S<slot>:CSTS<channel>.LS

Boolean

1

Read Only

Channel Configuration: Count Type (Mode) The mode of counter operation is configured via CCFG<channel>.COUNTTYPE.

Values 0 = Pulse & Direction 1 = Up/Down Count 2 = Quadrature

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.COUNTTYPE

Byte, Word, Short, DWord, Long

1

Read/Write

Note: For more information, refer to OptiLogic I/O Modules Manual.

Examples Address

Value

Description

S1:CCFG1.COUNTTYPE

1

Slot 1, ch1 count mode set for pulse & dir.

S1:CCFG1.COUNTTYPE

3

Slot 1, ch1 count mode set for quadrature.

Channel Configuration: Frequency Period Recall that a pulse count over a preset period of time can be accessed through C<channel>.FREQDATA. The period in the FREQDATA formula C<channel>.COUNT @ (start + period)-C<channel>.COUNT @ start is configured through CCFG<channel>.FREQPER.

Values 0 = 1 second count 1 = 200 msec count

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.FREQPER

Byte, Word, Short, DWord, Long

1

Read/Write

Examples www. kepware.com

Page 77

Optimation OptiLogic Driver Help

77 Address

Value

Description

S1:CCFG1.FREQPER

0

Slot 1, ch1, FREQDATA reflects count in 1 second time window.

S1:CCFG1.FREQPER

1

Slot 1, ch1, FREQDATA reflects count in 200 ms time window.

Channel Configuration: Preset Establish a preset count value by setting CCFG<channel>.PRESET.

Requirements For preset to take effect, at least one of the following must be true: CCFG<channel>.FORCEPRESET be set to TRUE CCFG<channel>.ZPRESETEN be set to TRUE and Z input be TRUE CCFG<channel>.LSPRESETEN be set to TRUE and LS input be TRUE

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.PRESET

DWord, Long

1

Write Only

Examples Address

Value

Description

S1:CCFG1.PRESET

1000

Slot 1, ch1, set preset to 1000.

S1:CCFG1.PRESET

0

Slot 1, ch1, set preset to 0 (default).

Channel Configuration: Force Preset Set the counter's count value to the preset given in CCFG<channel>PRESET.

Values True = Send PRESET to device False = No action

Requirements None

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.FORCEPRESET

Boolean

1

Write Only

Channel Configuration: Hold Count Hold the current count value by referencing CCFG<channel>.HOLDCOUNT.

Values True = Hold count value False = No action

Requirements None.

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.HOLDCOUNT

Boolean

1

Write Only

Channel Configuration: Z Preset Enable Enables Z input to control the presetting of the counter.

Values True = Z input state configured to preset counter when applicable False = Z input state has no control over presetting counter

Requirements None.

www. kepware.com

Page 78

Optimation OptiLogic Driver Help

78

Specifications Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.ZPRESETEN

Boolean

1

Write Only

Syntax

Data Type

Range

Access

S<slot>:CCFG<channel>.LSPRESETEN

Boolean

1

Write Only

Channel Configuration: LS Preset Enable Enables LS input to control the presetting of the counter.

Values True = LS input state configured to preset counter when applicable False = LS input state has no control over presetting counter

Requirements None.

Specifications

Triggered Digital Outputs There are 2 digital outputs that can be configured to turn on when the counter count is within a specific range. The status of whether the digital output is on or off can be accessed through CTRIGDO<output>.

Requirements CTRIGDO outputs must have a range specified and enabled, otherwise outputs will remain off.

Specifications Syntax

Data Type

Range

Access

S<slot>:CTRIGDO<output>

Boolean

1-2

Read Only

Examples Address

Value

Description

S1:CTRIGDO1

1

Slot 1, output 1 is on.

S1:CTRIGDO2

0

Slot 1, output 2 is off.

Triggered Digital Outputs: Minimum Range Set the range's minimum value to be the counter's count value at which users desire the CTRIGDO<output> to turn from off to on. This minimum range value is referenced as CTRIGDO<output>.MINRANGE.

Requirements CTRIGDO range usage must be enabled.

Specifications Syntax

Data Type

Range

Access

S<slot>:CTRIGDO<output>.MINRANGE

DWord, Long

1-2

Write Only

Examples Address

Value

Description

S1:CTRIGDO1.MINRANGE

100

Slot 1, output 1, turn on when count = 100.

S1:CTRIGDO2.MINRANGE

65536

Slot 1, output 2, turn on when count = 65536.

Triggered Digital Outputs: Maximum Range Set the range's maximum value to be the counter's count value at which users desire the CTRIGDO<output> to turn from on to off. This maximum range value is referenced as CTRIGDO<output>.MAXRANGE.

Requirements CTRIGDO usage range must be enabled.

Specifications Syntax

Data Type

Range

Access

S<slot>:CTRIGDO<output>.MAXRANGE

DWord, Long

1-2

Write Only www. kepware.com