J
I have several times complained about a major (in my opinion) missing feature from Siemens PLCs. While S7 / Step 7 allows you to create an array, you can't index them with a variable. This defeats the whole purpose of an array. Array indexing by variable is now allowed, but only in Step 7 Basic for S7-1200. This is an interesting limitation; the 1200 is not meant to be a high-end PLC / PAC. Siemens often compares it to Allen-Bradley's MicroLogix. (Take this article, for example, which mentions a Siemens webinar comparing the two. http://www.totallyintegratedautomation.com/2010/09/analyzing-competing-controller-platforms/ ) Supposedly, they will have a broader range of PLCs that support the new features the 1200 has, but for now that's the only controller you can do this on.
One further restriction. In a Rockwell ControlLogix / CompactLogix PLC if I want to index an array I just do it. In an Add instruction I can type in a my_array[current_index] in one field, 7 in the next, and result[different_index] in the destination. In Step 7 Basic you have to explicitly call a function for getting or setting an index in an array, so you have an extra step to do.
Here's the link to a video describing the new feature.
http://www.automation.siemens.com/s...basic-screencasts/en/video-12/video-12-en.htm
Finally, I'm curious as to other people's feelings on this. Are all the Siemens users out there jumping for joy, or do you just never need to index an array? Am I the only one that thinks this is a critical feature?
-James Ingraham
Sage Automation, Inc.
One further restriction. In a Rockwell ControlLogix / CompactLogix PLC if I want to index an array I just do it. In an Add instruction I can type in a my_array[current_index] in one field, 7 in the next, and result[different_index] in the destination. In Step 7 Basic you have to explicitly call a function for getting or setting an index in an array, so you have an extra step to do.
Here's the link to a video describing the new feature.
http://www.automation.siemens.com/s...basic-screencasts/en/video-12/video-12-en.htm
Finally, I'm curious as to other people's feelings on this. Are all the Siemens users out there jumping for joy, or do you just never need to index an array? Am I the only one that thinks this is a critical feature?
-James Ingraham
Sage Automation, Inc.