30.5.1.3 Special I/O System Variables

Once all the terminals are mapped in the [I/O Driver], map the standard I/O terminals in the [I/O screen]. Please note that terminals allocated to special I/O are mapped to system variables (integer format) for storing its unique information.

System variable details.

System Variable

Description

Always

High Speed Counter

PWM Output

Pulse output

Pulse Catch

#L_ExIOFirmVer

Extended I/O board firmware version

 

 

 

 

#L_ExIOSpCtrl

Special I/O control

 

#L_ExIOSpOut

Special output

 

 

#L_ExIOSpParmChg

Change Special I/O parameter

 

 

#L_ExIOSpParmErr

Special I/O parameter error

 

 

#L_ExIOAccelPlsTbl

Acceleration/Deceleration pulse table

 

 

 

 

#L_ExIOCntInCtrl

Counter input control

 

 

 

 

#L_ExIOCntInExtCtrl

Counter external input control

 

 

 

 

#L_PWM*_WHZ

CH* Output Frequency

 

 

 

 

#L_PWM*_DTY

CH* ON duty value

 

 

 

 

#L_PLS*_LHZ

CH* Output Frequency

 

 

 

 

#L_PLS*_NUM

CH* Output pulse count

 

 

 

 

#L_PLS*_SHZ

CH* Initial Output Frequency

 

 

 

 

#L_PLS*_ACC

CH* acceleration/deceleration time

 

 

 

 

#L_PLS*_CPC

CH* Current Pulse Output Value

 

 

 

 

#L_HSC*_MOD

CH* Count Method

 

 

 

 

#L_HSC*_PLV

CH* Preload Value

 

 

 

 

#L_HSC*_PSV

CH* Prestrobe Value

 

 

 

 

#L_HSC*_ONP

CH* ON Preset Value

 

 

 

 

#L_HSC*_OFP

CH* OFF Preset Value

 

 

 

 

#L_HSC*_HCV

CH* Current Counter Value

 

 

 

 

Extended I/O port firmware version (#L_ExIOFirmVer)

In the bottom 16 bits, stores the extended I/O board firmware version.

For "Revision 01.05," store as "0x0105."

Special I/O control (#L_ExIOSpCtrl)

Special I/O control

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to control the special I/O operation.

a: CH1 special I/O control

b: CH2 special I/O control

c: CH3 special I/O control

d: CH4 special I/O control

PWM Output

Pulse output

High speed counter (including 2-phase counter)

Pulse Catch

* When applying a CH number to "n", the applicable bit number "b" can be found.

Special I/O state

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to show the special I/O state.

a: CH1 special I/O state

b: CH2 special I/O state

c: CH3 special I/O state

d: CH4 special I/O state

PWM Output

Pulse output

High speed counter (including 2-phase counter)

Pulse Catch

* When applying a CH number to "n", the applicable bit number "b" can be found.

Special I/O output (#L_ExIOSpOut)

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to show the special I/O output state.

a: CH1 special I/O output state

b: CH2 special I/O output state

c: CH3 special I/O output state

d: CH4 special I/O output state

* When applying a CH number to "n", the applicable bit number "b" can be found.

Special I/O parameter change (#L_ExIOSpParmChg)

Request Special I/O Parameter Change

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to request the special I/O parameter change.

a: CH1 special I/O parameter change request

b: CH2 special I/O parameter change request

c: CH3 special I/O parameter change request

d: CH4 special I/O parameter change request

* Change the parameter before turning the bit on for the special I/O parameter change request.

* You cannot change the parameter for the acceleration/deceleration pulse here. Use a table creation request flag for the acceleration/deceleration pulse.

* When reading the parameter of the acceleration/deceleration pulse, turn on the flag for the acceleration/deceleration pulse to control the special I/O operation.

* When applying a CH number to "n", the applicable bit number "b" can be found.

Special I/O parameter change completed

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to notify the completion of the special I/O parameter change.

a: CH1 special I/O parameter changed successfully

b: CH2 special I/O parameter changed successfully

c: CH3 special I/O parameter changed successfully

d: CH4 special I/O parameter changed successfully

* When applying a CH number to "n", the applicable bit number "b" can be found.

Special I/O parameter error (#L_ExIOSpParmErr)

The applicable bit turns ON if there is an error when the parameter changes to a special I/O parameter.

PWM error

* When applying a CH number to "n", the applicable bit number "b" can be found.

Pulse output frequency error

Pulse output shot error

Counter preset value error

Pulse initial output frequency value error

Acceleration/Deceleration pulse parameter warning

Control error

Counter input control error occurs when the bottom 16 bits in the ON Preset Value or OFF Preset Value is xxxxFFFFh or xxxx0000h.

* The pulse output control error occurs when the total of the Counter Input condition check time and Pulse Output condition check time exceed the minimum width for the Pulse Output.
For details, see 30.5.13 Restrictions.

Acceleration/Deceleration pulse table (#L_ExIOAccelPlsTbl)

Request for the acceleration/deceleration pulse table creation

a: CH1 acceleration/deceleration pulse table creation request

0: Not requested, 1: Requested

b: CH2 acceleration/deceleration pulse table creation request

0: Not requested, 1: Requested

c: CH3 acceleration/deceleration pulse table creation request

0: Not requested, 1: Requested

d: CH4 acceleration/deceleration pulse table creation request

0: Not requested, 1: Requested

The Create Acceleration/Deceleration table complete successfully

a: CH1 acceleration/ deceleration pulse table created successfully

b: CH2 acceleration/ deceleration pulse table created successfully

c: CH3 acceleration/ deceleration pulse table created successfully

d: CH4 acceleration/ deceleration pulse table created successfully

* When applying a CH number to "n", the applicable bit number "b" can be found.

Counter Input Control (#L_ExIOCntInCtrl)

Control request for counter input only

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to request the counter input control.

a: CH1 counter input control request

b: CH2 counter input control request

c: CH3 counter input control request

d: CH4 counter input control request

* When applying a CH number to "n", the applicable bit number "b" can be found.

Counter input control response

This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to store the counter input control response.

a: CH1 counter input control response

b: CH2 counter input control response

c: CH3 counter input control response

d: CH4 counter input control response

* When applying a CH number to "n", the applicable bit number "b" can be found.

Counter External Input Control (#L_ExIOCntInExtCtrl)

Counter external input completed

The counter external input (preload/prestrobe input/marker input*1) turns ON and notifies you that the counter value write or read has completed successfully.

a: CH1 preload/prestrobe completed

0: Normal, 1: Completed

b: Marker Input*1 for 2-Phase Counter Input of CH1 completed

0: Normal, 1: Completed

c: CH2 preload/prestrobe completed

0: Normal, 1: Completed

d: CH3 preload/prestrobe completed

0: Normal, 1: Completed

e: CH3 2-phase counter input marker input completed

0: Normal, 1: Completed

f: CH4 preload/prestrobe completed

0: Normal, 1: Completed

Acknowledge counter external input completed

Use this variable when confirming that the counter external input (preload/prestrobe input/marker input*1) is complete.

a: CH1 preload/prestrobe completion acknowledgment

0: Normal, 1: Acknowledged

b: Marker Input*1 for 2-Phase Counter Input of CH1 completion acknowledgement

0: Normal, 1: Acknowledged

c: CH2 preload/prestrobe completion acknowledgment

0: Normal, 1: Acknowledged

d: CH3 preload/prestrobe completion acknowledgment

0: Normal, 1: Acknowledged

e: CH3 2-phase counter input marker input completion acknowledged

0: Normal, 1: Completed

f: CH4 preload/prestrobe completion acknowledged.

0: Normal, 1: Acknowledged

CH* Output Frequency (#L_PWM*_WHZ)

CH* ON duty value (#L_PWM*_DTY)

CH* Output Frequency (#L_PLS*_LHZ)

CH* Output pulse count(#L_PLS*_NUM)

CH* Initial Output Frequency (#L_PLS*_SHZ)

CH* acceleration/deceleration time (#L_PLS*_ACC)

CH* Current Pulse Output Value (#L_PLS*_CPC)

CH* Count Method (#L_HSC*_MOD)

HSC method

CH* Preload Value (#L_HSC*_PLV)

CH* Prestrobe Value (#L_HSC*_PSV)

CH* ON Preset Value (#L_HSC*_ONP)

CH* OFF Preset Value (#L_HSC*_OFP)

CH* Current Counter Value (#L_HSC*_HCV)

*1Marker input is only for using 2-phase counter