Initialization sample [Setting]


Appearance

Overview

It initializes it by using the initialization function.

Please push [Set] when you reflect the setting in the device.
The return value is displayed in the comment, and execute it again, please after confirming the content of the error and the correspondence when the setting is not effective.

Please push [Status] when you check the completion of initialization .

Please push [EXIT] when you end this program.

Use function

Initialization function( SmcWSetPulseType SmcWSetEncType )

Step to Use

- The set axis is selected with the device name and AxisNo (axis number).

- PulseOut(setting of output pulse)

- PulseType(The pulse output mode is set. )SmcWSetPulseType function
The PulseType is displayed by the sort order of parameter: PulseMode.

Common pulse method OUT: Negative logic, DIR+: High, DIR-: Low
Common pulse method OUT: Positive logic,  DIR+: High, DIR-: Low
Common pulse method OUT: Negative logic, DIR+: Low, DIR-: High
Common pulse method OUT: Positive logic,  DIR+: Low, DIR-: High
2-pulse mode: Negative logic
2-pulse mode: Positive logic
Phase difference mode of 90 degrees OUT:Leading,DIR:Trailing
Phase difference mode of 90 degrees OUT:Trailing,DIR:Leading

- Reverse Direction Timer ON
The weight (delay) at 200 microseconds is inserted before the pulse is output when the direction changes by the change in the DIR change when the common pulse method is set.(It is effective only for the common pulse method. )

- S Accel/Decel Use

- PulseIn (Setting of encoder input pulse)
Encoder Type(encoder type) SmcWSetEncType function

A/B two-phase input 1 times
A/B two-phase input 2 times
A/B two-phase input 4 times
U/D single-phase input 1 times

- In/Out Setting

- Logic Setting

- ORG Setting

- ERC/ALM Clear Setting

- LTC/CLR Setting