1. Jog instruction JOG

1. Jog instruction JOG

1.1. Instruction description

  1. Jog command is a directional pulse command with adjustable frequency and acceleration/deceleration time. When the input terminal is turned on, the pulse accelerates uniformly to the set frequency and outputs at a constant speed. When the input terminal is turned off, the deceleration slows down from the set frequency to 0. When the input terminal is disconnected, the pulse output does not immediately stop and there is a deceleration process.

  2. The absolute frequency range that can be output by the JOG instruction is 0Hz~200KHz.

  3. The JOG command will automatically determine the positive or negative value of the frequency and change the output of the pulse direction output port Y accordingly. For example, when the frequency is 100KHz, the output direction is automatically set to positive, and when it is -100KHz, the output direction is automatically set to negative, without the need to manually change the direction of the output port Y.

  4. For 16 point transistor type PLCs, Y0~Y1 are high-speed pulse output ports, and for 32/50/66 point transistor type PLCs, Y0~Y3 are high-speed pulse output ports; Relay type PLCs do not have high-speed pulse function, and the maximum output frequency of the output port is determined by the closing time of the relay. For multi pulse series PLCs, their high-speed pulse output ports are Y0~Y7 and Y10~Y11.

  5. The instruction is symmetrical (with the same acceleration and deceleration time) trapezoidal and S-shaped position control. When the special function register M8069 is ON, the acceleration and deceleration of all pulse instructions are S-shaped, and when it is OFF, they are trapezoidal.

  6. The special function register M8068 is used for directional polarity control. The default pulse direction output port is ON, which indicates the positive direction, and OFF, which indicates the negative direction. If M8068 is set to ON, the polarity of the directional output of all pulse commands will be reversed, with OFF indicating positive direction and ON indicating negative direction.

Pulse is outputting flag (read-only):
register pulse port
M8134 Y000
M8135 Y001
M8136 Y002
M8137 Y003
For multi pulse series PLCs, the following registers are also available:
register pulse port
M8138 Y004
M8139 Y005
M8140 Y006
M8141 Y007
M8142 Y010
M8143 Y011
Pulse accumulation counting (read-write):
register pulse port
D8140(D8141) Y000
D8142(D8143) Y001
D8144(D8145) Y002
D8146(D8147) Y003
For multi pulse series PLCs, the following registers are also available:
register pulse port
D8148(D8149) Y004
D8150(D8151) Y005
D8152(D8153) Y006
D8154(D8155) Y007
D8156(D8157) Y010
D8158(D8159) Y011

1.1.1. Attention:

  1. For high-speed pulse output, it is designed for external high-speed devices. To count the pulses, only the high-speed pulse input counter can be used, and internal counters or Y edge changes cannot be used for counting. When used as a high-speed output, it cannot be used as a regular output port;

  2. The OFF time of transistors has the characteristic of being prolonged under light loads. So, when responsiveness is required, please design a load resistor to increase the load current when the load is lighter;

  3. For the pulse output Y0, the number of pulses is accumulated in register D8140 (D8141), where D8141 stores the high 16 bits and D8140 stores the low 16 bits;

  4. The pulse accumulation count registers (D8140~D8158) are important registers that can be read and written. When a new value is written, the count will be added or subtracted based on the new value;

  5. Due to the directional output of the pulse in this instruction, the pulse accumulation counting registers (D8140~D8158) count according to the direction;

  6. When outputting high-speed pulses, the values in the pulse accumulation count registers (D8140~D8158) are discontinuous and constantly changing. When used for judgment, please use size comparison instead of equal judgment;

  7. When the pulse command is used to output port Y, the Y port cannot be used for other purposes, that is, ordinary commands cannot perform ON or OFF operations on the Y port anymore.

  8. If the frequency of multiple pulse pulses exceeds 200K, a pull-up resistor needs to be added to the pulse output port to ensure that the pulse waveform is not distorted. The pull-up voltage is 24V, and the recommended pull-up resistor is 1K.

1.2. The valid operands of the instruction

Input/Output Data Type operand Description
F 32-bit integer D/CV/K/H/FD, bit composite word (X/Y/M/C/T/S), local variable (LD) frequency
T 16 bit unsigned integer D/CV/TV/AI/AO/K/H/V/Z/FD, bit composite word (X/Y/M/C/T/S), local variable (LW) acceleration/deceleration time
OUT ON/OFF Y Pulse
DIR ON/OFF Y Direction

1.3. Example

command table:

NETWORK 000

LD M0

JOG K100000 K100 Y0 Y4 // When M0 is set, JOG starts working

JOG

图1 JOG