Hello Guest it is July 21, 2025, 08:04:26 AM

Author Topic: issue with m62/m63 triggering the plc script  (Read 8521 times)

0 Members and 1 Guest are viewing this topic.

issue with m62/m63 triggering the plc script
« on: July 20, 2022, 06:32:22 AM »
hi guys
i am running industrial mach 4 on ess.
im trying to log laser measurements to text file without stopping the machine movement (kind of like non-stop probing).
i tried to have an output trigger my script in the sigLib or the plc script, in both cases, my script runs well when triggering manually and with m64 but not using m62.
i tried to verify m62 is working by connecting the output pin to an external LED and it works fine.
the problem seems to be that m62 doesn't trigger the PLC script for some reason...
did anyone encounter something like this?

thanks!
Re: issue with m62/m63 triggering the plc script
« Reply #1 on: May 17, 2024, 10:41:53 AM »
M62 requires a small move on the next like or motion won't start. I have had problems with motion not starting with M62 even with G0 or G1 move immediatly after. I'm still investigating the cause. M64 does not need a move.

M62: Synchronized Output On
Turns on an output synchronized with the start of the next motion command. If no motion is commanded, the output will not turn on. It is best to specify motion immediately following the M62 command.

Format: M62 P_

P specifies the output number to turn on. For example: Output0 = 0, Output3 = 3, Output10 = 10, etc.

M63: Synchronized Output Off
Turns off an output synchronized with the start of the next motion command. If no motion is commanded, the output will not turn off. It is best to specify motion immediately following the M63 command.

Format: M63 P_

P specifies the output number to turn off. For example: Output0 = 0, Output3 = 3, Output10 = 10, etc.

M64: Immediate Output On
The specified output is turned on immediately. Format: M64 P_

P specifies the output number to turn on. For example: Output0 = 0, Output3 = 3, Output10 = 10, etc.

M65: Immediate Output Off
The specified output is turned off immediately. Format: M65 P_