Chapter 11 Motion Control Instructions
11-303
11.6.5.5 DMC_SetG1Para
FB/FC Explanation Applicable model
FB
DMC_SetG1Para instruction sets the default velocity, acceleration,
deceleration and jerk for G1/G2/G3.
DMC_SetG1Para
AxesGroup Done
DMC_SetG1Para_instance
Execute
Velocity
Busy
Error
ErrorID
Acceleration
Deceleration
Jerk
Input Parameters
Function Data type
Validation timing
AxesGroup
The number of the axes
group
USINT
(The variable value
changes from
Execute
The instruction is executed
when Execute changes from
BOOL
TRUE or FALSE
(FALSE)
-
Velocity
Specify the target speed
(Unit: unit/second)
LREAL
(The variable value
changes from
Acceleration
acceleration rate.
(Unit: Unit/s
2
)
LREAL
(The variable value
must be set)
changes from
FALSE to TRUE.
Deceleration
deceleration rate.
2
LREAL
(The variable value
changes from
Jerk
Specify the target jerk.
(Unit: Unit/s
3
)
LREAL
(The variable value
changes from
Output Parameters
Parameter name Function Data type Valid range
Done
TRUE when the instruction execution is
completed.
BOOL TRUE / FALSE
Busy
TRUE when the instruction is being
executed.
BOOL TRUE / FALSE
Error
TRUE when an error occurs in execution of
the instruction.
BOOL TRUE / FALSE
ErrorID
Contains the error code when an error
occurs. Please refer to section 12.2.
WORD -
Output Update Timing
Name Timing for changing to TRUE Timing for changing to FALSE
Done
When the setting is
completed.
When Execute changes from TRUE to FALSE after the
instruction execution is completed.
Busy
When Execute changes to
TRUE.
When Done changes to TRUE
When Error changes to TRUE