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 On |
High Speed Counter Unit |
PWM Output |
Pulse output |
Pulse Catch |
Extended I/O board firmware version |
- |
- |
- |
- |
||
Special I/O control |
- |
|||||
Special output |
- |
- |
||||
Change Special I/O parameter |
- |
- |
||||
Special I/O parameter error |
- |
- |
||||
Acceleration/Deceleration pulse table |
- |
- |
- |
- |
||
Counter input control |
- |
- |
- |
- |
||
Counter external input control |
- |
- |
- |
- |
||
Counter Input State*1 |
- |
- |
- |
- |
||
PWM External Input Control*1 |
- |
- |
- |
- |
||
CH* Output Frequency |
- |
- |
- |
- |
||
CH* ON duty value |
- |
- |
- |
- |
||
CH* Output Frequency |
- |
- |
- |
- |
||
CH* Output pulse count |
- |
- |
- |
- |
||
CH* Initial Output Frequency |
- |
- |
- |
- |
||
CH* acceleration/deceleration time or acceleration time*1 |
- |
- |
- |
- |
||
CH* Pulse deceleration time*1 |
- |
- |
- |
- |
||
CH* Current Frequency*1 |
- |
- |
- |
- |
||
CH* Current Pulse Output Value |
- |
- |
- |
- |
||
CH* Count Method |
- |
- |
- |
- |
||
CH* Time-Base when Sampling Mode is selected*1 |
- |
- |
- |
- |
||
CH* Preload Value |
- |
- |
- |
- |
||
CH* Prestrobe Value |
- |
- |
- |
- |
||
CH* ON Preset Value |
- |
- |
- |
- |
||
CH* OFF Preset Value |
- |
- |
- |
- |
||
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)
Checks the special I/O operation control and status.
The bit number differs depending on the specified CH number and special
I/O type.
PWM Output
|
Bit Number |
Feature |
Type |
Details |
LT |
|
4000 |
3000 |
|||||
a |
4(n-1)+0 |
PWM Output Control |
Control While ON |
Execute PWM output. Turn OFF to stop output. |
||
b |
4(n-1)+1 |
Forced Synchronization |
Control Up |
Resets the phase of the PWM output and output pulse. Same function as synchronize input. |
- |
|
c |
4(n-1)+2 |
Enable Input |
Control While ON |
Turns on the enable input function. To activate the enable function, you must turn on both this bit and the enable input signal. |
- |
|
d |
4(n-1)+3 |
Synchronize Input |
Control While ON |
Enables the synchronize input function. To activate the synchronize input function, you must turn on both this bit and the synchronize input signal. |
- |
|
e |
4(n-1)+16 |
PWM output state |
Status |
1: PWM output is being ouput. 0: PWM output is stopped. |
||
f |
4(n-1)+17 |
Forced Synchronization State |
Status |
1: Turns ON when the forced synchronization bit (b) runs forced synchronization. This bit does not turn OFF automatically. 0: Forced synchronization is stopped. |
- |
|
g |
4(n-1)+18 |
Enable Input Status |
Status |
1: The enable input bit (c) turns ON, and the enable input function is ready. 0: The enable input bit (c) turns OFF, and the enable input function is disabled. |
- |
|
h |
4(n-1)+19 |
Synchronize Input Status |
Status |
1: The synchronize input bit (c) turns ON, and the synchronize input function is ready. 0: The synchronize input bit (d) turns OFF, and the synchronize input function is disabled. |
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.
Pulse Output
|
Bit Number |
Feature |
Type |
Details |
LT |
|
4000 |
3000 |
|||||
a |
4(n-1)+0 |
Pulse Output Control |
Control While ON |
1: Start output 0: Forced stop |
||
b |
4(n-1)+1 |
Acceleration/deceleration pulse settings |
Control While ON |
1: Enable 0: Disable |
||
c |
4(n-1)+2 |
Acceleration pulse settings |
Control While ON |
1: Enable 0: Disable |
- |
|
d |
4(n-1)+3 |
Pulse Output Direction Control |
Control While ON |
1: Negative direction (CCW) 0: Positive direction (CW) |
- |
|
e |
4(n-1)+16 |
Pulse Output Status |
Status |
1: Operational Slaves 0: Stopped Slaves |
||
f |
4(n-1)+17 |
Acceleration/Deceleration Pulse Settings Status |
Status |
1: Enable 0: Disable |
||
g |
4(n-1)+18 |
Pulse Count Output Completion |
Status |
1: The defined number of pulse outputs is complete. |
||
h |
4(n-1)+19 |
Pulse Output Direction |
Status |
1: Negative direction (CCW) 0: Positive direction (CW) |
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.
High speed counter (including 2-phase counter)
|
Bit Number |
Feature |
Type |
Details |
LT |
|
4000 |
3000 |
|||||
a |
4(n-1)+0 |
High Speed Counter Control |
Control While ON |
1: Start count 0: Stop |
||
b |
4(n-1)+1 |
Synchronize Output |
Control While ON |
1: Enable 0: Disable |
||
c |
4(n-1)+2 |
ON Preset / OFF Preset Stop Control |
Control While ON |
1: Stop 0: Start |
- |
|
d |
4(n-1)+3 |
Synchronize Output Forced Control |
Control While ON |
1: Enable 0: Disable |
- |
|
e |
4(n-1)+16 |
High Speed Counter State |
Status |
1: Operational Slaves 0: Stopped Slaves |
||
f |
4(n-1)+17 |
Synchronize Output Setting Status |
Status |
1: Enable 0: Disable |
||
g |
4(n-1)+18 |
ON Preset / OFF Preset Stop Status |
Status |
1: Stopped Slaves 0: Operational Slaves |
- |
|
h |
4(n-1)+19 |
Synchronize Output Forced Control Status |
Status |
1: Enable 0: Disable |
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.
Pulse Catch
|
Bit Number |
Feature |
Type |
Details |
LT |
|
4000 |
3000 |
|||||
a |
4(n-1)+0 |
Pulse Catch Clear |
Control Up |
1: Clear |
||
e |
4(n-1)+16 |
Pulse Catch Clear Status |
Status |
1: Clear Complete |
||
f |
4(n-1)+17 |
Pulse Catch Detect |
Status |
1: Has input 0: No input |
||
g |
4(n-1)+18 |
Input Terminal Current Status |
Status |
1: ON 0: OFF |
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.
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
* Apply the CH number to "n" to find the corresponding bit number "b".
With the LT4000 Series, the output status using #L_ExIOSpOut can only be confirmed with the high speed counter's synchronize output. To confirm other special I/O ouput status, use #L_ExIOSpCtrl.
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.
* Apply the CH number to "n" to find the corresponding bit number "b".
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
* Apply the CH number to "n" to find the corresponding bit number "b".
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
* Apply the CH number to "n" to find the corresponding bit number "b".
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 31.5.14 Restrictions.
Acceleration/Deceleration pulse table control (#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
* Apply the CH number to "n" to find the corresponding bit number "b".
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
* Apply the CH number to "n" to find the corresponding bit number "b".
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
* Apply the CH number to "n" to find the corresponding bit number "b".
Counter External Input Control (#L_ExIOCntInExtCtrl)
Counter external input completed
The counter external input (preload/prestrobe input/marker input*2) 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*2 for CH1 2-Phase Counter Input completed |
0: Normal, 1: Completed |
c:CH1 High Speed Counter State*1 |
0: Disabled, 1: Enabled |
d: CH1 Extended Input State*1 |
0: Disabled, 1: Enabled |
e: CH2 preload/prestrobe completed |
0: Normal, 1: Completed |
f:CH2 High Speed Counter State*1 |
0: Disabled, 1: Enabled |
g: CH2 Extended Input State*1 |
0: Disabled, 1: Enabled |
h: CH3 preload/prestrobe completed |
0: Normal, 1: Completed |
i: CH3 2-phase counter input marker input completed |
0: Normal, 1: Completed |
j:CH3 High Speed Counter State*1 |
0: Disabled, 1: Enabled |
k: CH3 Extended Input State*1 |
0: Disabled, 1: Enabled |
l: CH4 preload/prestrobe completed |
0: Normal, 1: Completed |
m:CH4 High Speed Counter State*1 |
0: Disabled, 1: Enabled |
n: CH4 Extended Input State*1 |
0: Disabled, 1: Enabled |
Acknowledge counter external input completed
Use this variable when confirming that the counter external input (preload/prestrobe input/marker input*2) is complete.
a: CH1 preload/prestrobe completion acknowledgment |
0: Normal, 1: Acknowledged |
b: Marker Input*2 for CH1 2-Phase Counter Input completion acknowledgment |
0: Normal, 1: Acknowledged |
c:CH1 High Speed Counter Control*1 |
0: Disabled, 1: Enabled |
d: CH1 Extended Input Control*1 |
0: Disabled, 1: Enabled |
e: CH2 preload/prestrobe completion acknowledged |
0: Normal, 1: Acknowledged |
f:CH2 High Speed Counter Control*1 |
0: Disabled, 1: Enabled |
g: CH2 Extended Input Control*1 |
0: Disabled, 1: Enabled |
h: CH3 preload/prestrobe completion acknowledged |
0: Normal, 1: Acknowledged |
i: CH3 2-phase counter input marker input completion acknowledged |
0: Normal, 1: Acknowledged |
j:CH3 High Speed Counter Control*1 |
0: Disabled, 1: Enabled |
k: CH3 Extended Input Control*1 |
0: Disabled, 1: Enabled |
l: CH4 preload/prestrobe completion acknowledged |
0: Normal, 1: Acknowledged |
m:CH4 High Speed Counter Control*1 |
0: Disabled, 1: Enabled |
n: CH4 Extended Input Control*1 |
0: Disabled, 1: Enabled |
Counter input state (#L_ExIOCntInState)
Shows the input satus of the high speed counter. The bit to be used is determined by the CH number set with the high speed counter in the I/O driver settings.
|
Bit Number |
Feature |
Type |
Details |
LT |
|
4000 |
3000 |
|||||
a |
4(n-1)+0 |
Clear reached flag |
Control |
Turn OFF the reached Upper/Lower limit flag (e). |
- |
|
e |
4(n-1)+16 |
Reached Upper/Lower limit flag |
Status |
When the counter
mode is [Ring] or [Linear], and the current value reaches the
upper or lower limit, the flag turns ON. Condition: Current Counter Value = Upper Limit (Lower Limit) |
- |
|
f |
4(n-1)+17 |
Comparison with preset value (smaller) |
Status |
Turns ON when the current value is greater than the smaller preset value. Up Counter Condition: Preset Value (smaller)
<= Current Counter Value |
- |
|
g |
4(n-1)+18 |
Comparison with preset value (larger) |
Status |
Turns ON when the current value is greater than the larger preset value. Up Counter Condition: Preset Value (larger)
<= Current Counter Value |
- |
|
h |
4(n-1)+19 |
Comparison with preset value (larger/smaller) |
Status |
Turns ON when the current value is between the ON preset value and OFF preset value. Up Counter Condition: Preset Value (smaller)
<= Current Counter Value < Preset Value (larger) |
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.
a,e: Upper/Lower limit reached flag and Clear bit
The following explains the actions of the upper/lower limit reached
flag (e) and Clear bit (a).
The counter mode is [Ring], and the counter operation is [Up Count].
#L_HSC*_HCV: Current Counter Value
e: Reached Upper/Lower limit flag a: Clear bit for the reached flag |
1) When current counter value (#L_HSC*_HCV) reaches the upper limit,
the upper/lower limit reached flag (e) turns ON.
2) When the reached flag's clear bit (a) is turned ON, the upper/lower
limit reached flag (e) turns OFF.
3) The reached flag's clear bit (a) turns OFF.
4) While the upper/lower limit reached flag (e) is ON, the current counter
value (#L_HSC*_HCV) reaching the upper limit cannot be detected.
f,g,h: Compare the preset value and current counter value
You can determine if the current counter value is greater than or less
than the preset value by comparing them.
There are two preset values: ON preset value and OFF preset value. Bit
"f" stores the comparison result with the smaller preset value.
"g" stores the comparison result with the larger preset value.
#L_HSC*_HCV: Current Counter Value B: Preset Value (large) A:Preset Value (smaller)
f: Comparison with preset value (smaller) g: Comparison with preset value (larger) h: Comparison with preset value (larger/smaller) |
f. Comparison with Preset Value (smaller)
1) At up count, when the current counter value (#L_HSC*_HCV) reaches "A",
"f" turns ON. When the current counter value reaches the upper
limit and resets, "f" turns OFF.
2) When the current counter value reaches "A" again, "f"
turns ON. When the current counter value is reset while counting, "f"
turns OFF.
3) At down count, when the current counter value reaches "A",
"f" turns OFF.
g. Comparison with Preset Value (larger)
4) At up count, when current counter value (#L_HSC*_HCV) reaches "B",
"g" turns ON. When current value reaches the upper limit and
is reset, "g" turns OFF.
5) At down count, when the current counter value reaches "B",
"g" turns OFF.
h. Comparison with Preset Value (larger/smaller)
6) At up count, when the current counter value (#L_HSC*_HCV) reaches "A",
"h" turns ON. When the current value reaches "B",
"h" turns OFF.
7) While bit "h" is ON, if the current counter value exceeds
the range defined by A and B, "h" turns OFF.
8) At down count, if the current counter value reaches "B", "h"
turns ON. If it reaches "A", "h" turns OFF.
PWM Enable Input Control (#L_ExPWMExCtrl)
PWM Enable Input Control
This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to display the PWM enable input control.
a: CH1 PWM Enable Input Control
b: CH2 PWM Enable Input Control
c: CH3 PWM Enable Input Control
d: CH4 PWM Enable Input Control
* When applying a CH number to "r;n", the applicable bit number "r;b" can be found.
PWM Enable Input State
This variable uses the CH specified in the I/O driver settings as the 4-bit configuration information to display the PWM enable input control.
a: CH1 PWM Enable Input State
b: CH2 PWM Enable Input State
c: CH3 PWM Enable Input State
d: CH4 PWM Enable Input State
* Apply the CH number to "n" to find the corresponding bit number "b".
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)
When using the LT4000 Series, #L_PLS*_ACC specifies the acceleration time.
CH* Pulse deceleration time (#L_PLS*_DEC)
CH* Current Frequency (#L_PLS*_CHZ)
CH* Current Pulse Output Value (#L_PLS*_CPC)
CH* Count Method (#L_HSC*_MOD)
HSC method
CH* time-base in event mode (#L_HSC*_TB)
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)
*1 Available only for LT4000 series.
*2 Marker input is only for using the 2-phase counter