CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Tue Nov 19, 2019 3:50 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
 Post subject: G-Code with M Code
PostPosted: Mon Apr 18, 2016 11:05 am 
Offline

Joined: Wed Nov 21, 2007 3:12 pm
Posts: 4
Hello,
I have difficulities with combining G-Code and M-code.
For example:
M127
M104 S205 T0 ; set temperature
G1 X0 Y0 Z5 F1000 ; lift nozzle <- the machine immidiately jumps to the set speed without any acceleration (the machine makes a jerk)
G21 ; set units to millimeters
G90 ; use absolute coordinates

The following code works smoothly:
G1 X0 Y0 Z5 F1000 ; lift nozzle <- the code is the same
M127
M104 S205 T0 ; set temperature

For some reason, if the G-Code starts with an M-command, the first next G-command causes a jerk on the machine.
If we remove the M-command from the beginning, the code causes no jerks on the machine.
What command should I use with SoftMotion, so we can avoid the problem?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited