"Ladder Logic" is the 44th most popular programming language.

Is the compiler for RMC Tools or just for the sake of doing it?
Yes, eventually. I am following the specification pretty strictly. I think the only deviance is that one may use // in addition to (* *) for comments. The new version should have better error reporting and compile faster and execute faster.

I can add a lot of those proposals in the pdf easily. UNION would be easy. I like the _TO_INT feature for converting anything to INT. As it is each conversion like DINT_TO_REAL etc needs to be handled as a built in function. I don't want to actually call a function but do the conversion in-line. Often nothing needs to be done except change the type of the variable.

I don't like the idea of pointers because someone can crash the system with them. We automatically do range checking on array indexes just because we don't want the user to crash the system so we have a range fault check that will shut down the axes if a fault occurs.

Even though I now support REPEAT, WHILE and FOR i doubt those will be implemented because they can cause infinite loops. I could add a check to make sure the loop isn't taking to long but how long is too long?

I will leave out string and character handling for sure because motion controllers shouldn't be doing that kind of stuff. That is what HMIs are for.

I can't add anything that will allow the user to interfere with the motion control.
 

Similar Topics

Hello, I am going over some old code from days gone by. I would like the expert to confirm my findings to see if I got it correct. 1. B64:22/3...
Replies
7
Views
226
Hello, I´m having a problem trying to program in Ladder. An output should be trigged by two possible contacts. Take a look on the printscreen...
Replies
5
Views
163
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
182
Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
13
Views
259
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
226
Back
Top Bottom