Could anyone send me an example of a program using structured text for a CompactLogix PLC. I know there are some examples bundled with RS Logix, but it seems they are for ControlLogix, and my Lite version of Logix will not open them.
I am well familiar with structured text in the CodeSys or Siemens world, but this looks very different. Things that I'm trying to adjust to are:
Use of Structures
Where are the local vars in an ST program?
How 'Add-on' instructions compare to FBs/FCs
And so on............
Even the following line of code gives me problems;
stTestVar1.xTest1:=stTestVar1.xTest2; (This compiles)
stTestVar1.xTest1:=TRUE; (This doesn't compile)?!?
I think an example program using some of the above would help a lot.
Thanks
I am well familiar with structured text in the CodeSys or Siemens world, but this looks very different. Things that I'm trying to adjust to are:
Use of Structures
Where are the local vars in an ST program?
How 'Add-on' instructions compare to FBs/FCs
And so on............
Even the following line of code gives me problems;
stTestVar1.xTest1:=stTestVar1.xTest2; (This compiles)
stTestVar1.xTest1:=TRUE; (This doesn't compile)?!?
I think an example program using some of the above would help a lot.
Thanks