omron — K

PMAC Product Guide The jog-until-trigger function can be used with any jog command, whether the basic jog command is definite or indefinite. If the basic jog command is definite (e.g. J=10000 ), in the absence of a trigger the move will simply stop at the pre-defined position. If the basic jog command is indefinite (e.g. J+ ), in the absence of a trigger the motor will keep moving until stopped by another command or error condition. The trigger condition for a jog-until-trigger move can be either an input flag or a warning following error condition for the motor.

If bit 17 of Ix03 is 0 (the default), the trigger is a transition of an input flag and/or encoder index channel from the set defined for the motor by Ix25. Encoder/flag variables 2 and 3 (e.g. I912 and I913) define which edges of which input signals create the trigger. If bit 17 of Ix03 is 1, the trigger is the warning following error status bit of the motor becoming true. Ix12 for the motor sets the error threshold for this condition. The trigger position can be either the hardware-captured position or a software-read position. If bit 16 of Ix03 is 0 (the default), the encoder position latched by the trigger in PMAC’s DSPGATE hardware is used as the trigger position.

This is the most accurate option because it uses the position at the moment of the trigger, but it can only be used with incremental encoder feedback brought in on the same channel number as the triggering flag set. This option cannot be used for other types of feedback or for triggering on following error. If bit 16 of Ix03 is 1, PMAC reads the present sensor position after it sees the trigger. This can be used with any type of feedback and either trigger condition, but can be less accurate than the hardware capture because of software delays. Jogging acceleration and velocity are determined by the values of Ix19-Ix22 in force at the time of this command.

PMAC will reject this command if the motor is in a coordinate sytem that is currently running a motion program (reporting ERR001 if I6 is 1 or 3). Examples: #1J=^1000 ; Jog to pre-jog position in the absence of a trigger ; but if trigger is found, jog to +1000 counts from trigger #2J:5000^-100 ; Jog 5000 counts in the positive direction in the absence of a trigger ; but if trigger is found, jog to -100 counts from trigger position #3J=20000^0 ; Jog to 20000 counts in the absence of a trigger ; but if trigger is found, return to trigger position K Function : Kill motor output Scope : Motor specific Syntax : K This command causes PMAC to kill the outputs for the addressed motor.

The servo loop is disabled, the DAC outputs are set to zero (Ix29 and/or Ix79 offsets are still in effect), and the AENA output for the motor is taken to the disable state (polarity is determined by E17). Closed-loop control of this motor can be resumed with a J/ command. The A command will re-establish closed-loop control for all motors in the addressed coordinate system and the command will do so for all motors on PMAC. The action on a K command is equivalent to what PMAC does automatically to the motor on an amplifier fault or a fatal following error fault. 172 Online Commands