This DUT can be used with the following instruction(s): F171_PulseOutput_Trapezoidal
Elements of the DUT (identifiers):
Control code [hex constant]
Specify the control code using a hexadecimal constant. Example: 16#1025. 1, 0, 2, and 5 are the values corresponding to digits 3, 2, 1, and 0 of the hexadecimal constant. Digit 0 is the digit on the far right.Additional digits specific for the selected control method are set automatically by the compiler shortly before the instruction is called.
Digit |
Value |
Setting |
---|---|---|
4 |
Number of acceleration/deceleration steps |
|
0 |
30 steps |
|
1 |
60 steps |
|
3 |
Duty ratio (for pulse duration and period) The ratio between the pulse duration and the period of a rectangular waveform. For a pulse train in which the pulse duration is 1ms and the pulse period is 4ms, the duty ratio is 0.25 or 25%. |
|
0 |
½ (50%) |
|
1 |
¼ (25%) |
|
Specify a duty of ¼ (25%) if the frequency is set to 50kHz or more. FP-XC14T, C30/C60T: Specify a duty of ¼ (25%) if the frequency for channel 2 or 3 is set to 10kHz or more. |
||
2 |
Frequency range for initial and target speed |
|
0 |
1.5Hz–9.8kHz |
|
1 |
48Hz–100kHz |
|
2 |
191Hz–100kHz |
|
|
||
1 |
Position control mode |
|
0 |
Relative value control |
|
1 |
Absolute value control |
|
0 |
Pulse output method |
|
0 |
CW/CCW Control is carried out using two pulses: a positive or clockwise rotation pulse (CW) and a negative or counterclockwise rotation pulse (CCW pulse). |
|
2 |
Pulse/direction Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with TRUE/FALSE signals. (Forward FALSE: In this mode, forward rotation is carried out when the rotation direction signal is FALSE.) |
|
3 |
Pulse/direction Control is carried out using one pulse output to specify the speed and another to specify the direction of rotation with TRUE/FALSE signals. (Forward TRUE: In this mode, forward rotation is carried out when the rotation direction signal is TRUE.) |
Initial and final speed [Hz]
Target speed [Hz]
FP-X: For the medium speed channels 2 and 3, the maximum speed is 20kHz.
Acceleration/deceleration time [Hz]
With 30 steps: 30-32760 (specify in steps of 30)
With 60 steps: 60-32760 (specify in steps of 60)
The difference between target speed and initial speed determines the slope of the acceleration ramp.If the acceleration/deceleration time is not specified in steps of 30, the values will be automatically corrected to the next larger multiple values of 30.
Total movement amount: 10000 pulses
With 30 steps:
Df = (5000-500) ÷ 30 = 150HzDt = 300ms ÷ 30 = 10ms
With 60 steps:
Df = (5000-500) ÷ 60 = 75HzDt = 300ms ÷ 60 = 5ms
Set the acceleration/deceleration time t according to the following formula:t (ms) ³ (30 steps × 1000) ÷ initial speed [Hz]
Target value [pulses]
-2147483648–2147483647
The following outputs are TRUE or FALSE depending on the selected pulse output method and position control mode:
Pulse output method |
Pulse output |
Target value |
|
Positive value/> current value |
Negative value/< current value |
||
CW/CCW |
CW |
TRUE |
FALSE |
CCW |
FALSE |
TRUE |
|
Pulse/direction Forward FALSE |
Pulse |
TRUE |
TRUE |
Direction |
FALSE |
TRUE |
|
Pulse/direction Forward TRUE |
Pulse |
TRUE |
TRUE |
Direction |
TRUE |
FALSE |
|
Count mode |
Incremental counting |
Decremental counting |
Pulse stop
Set to 0.