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 Mon Feb 24, 2020 3:28 pm

All times are UTC+01:00

Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Jun 22, 2018 12:12 pm 

Joined: Wed Jan 27, 2016 10:51 pm
Posts: 40
Is it possible to find somewhere more detailed description how to use M function. The explanation in "Codesys online Help" is not very usefull.

PostPosted: Fri Dec 13, 2019 3:05 pm 

Joined: Mon Jun 11, 2018 12:17 pm
Posts: 4
Hello Peter,

I don't know if you can find a solution yet, but I'll post an answer here, because it might be useful for someone else.

When a M function is called, the [SMC_Interpolator] block will indicate the function number at output [wM], and then stop all movements and wait for [bAckM].

It is possible to send parameters using [SMC_GetMParameters] too (I didn't get to test this).

According to DIN 66025, there are some fixed M-functions (like M30 = end program), but I did not find a definition in the codesys documentation. As far as I tested, the limit for function M would be 2^16.


Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+01:00

Who is online

Users browsing this forum: No registered users and 2 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