18835130897
I using iec2c.exe to compile my custom function,motion_control.txt, but appear this problem,what can i do😢tmpA623.png
Reply 0 0
thiagoralves
Hard to say. I don't know what is inside your motion_control.txt file, so I can't tell where the problem is.
Reply 0 0
18835130897
Hard to say. I don't know what is inside your motion_control.txt file, so I can't tell where the problem is.
this is the file.Actually,this file was obtained from here this post,Modbus Stepper Controller - OpenPLC Forum (discussion.community)
Reply 0 0
18835130897
Hard to say. I don't know what is inside your motion_control.txt file, so I can't tell where the problem is.
I want to add some motion control FBD to openplc,but I do not know how it works😥
Reply 0 0
thiagoralves
This file needs a PROGRAM. It won’t compile if it doesn’t have a PROGRAM defined. Why don’t you just use the blocks in your program as posted in the link you sent?
Reply 0 0
18835130897
This file needs a PROGRAM. It won’t compile if it doesn’t have a PROGRAM defined. Why don’t you just use the blocks in your program as posted in the link you sent?
 how should I defined this program😥 I am sorry i ask many question because I am new.I use the peoject of the link but I do not know how it works ,I try to simulation but it not working,or maybe I didn't notice it .And I want to use those FBD in other projects as well, so i want to add it to editor
Reply 0 0
thiagoralves
Just create a project with your block and then export it to .st by clicking on the orange down arrow at the toolbar. You will see that the exported program contains a PROGRAM definition. To compile it with MatIEC you will have to remove the bottom comments wrapped in (* *)
Reply 0 0
18835130897
Just create a project with your block and then export it to .st by clicking on the orange down arrow at the toolbar. You will see that the exported program contains a PROGRAM definition. To compile it with MatIEC you will have to remove the bottom comments wrapped in (* *)
thans thiago! I will try it😘
Reply 0 0
Reply