Is it possible to create multi dimensional arrays with CBM?
For the creation of a funktion block it would be helpful to use a multi dimensional array. is this possible with the control builder?
Answers
I think it is only possible to create one dimensional arrays.
Given a choice i would not use arrays at first hand.
Again back to your question there are methods where you can do two dimensional oper on single but with add. codes, I am not sure abt the results in CBM. not recommended for reliable programming.
Given a choice i would not use arrays at first hand.
Again back to your question there are methods where you can do two dimensional oper on single but with add. codes, I am not sure abt the results in CBM. not recommended for reliable programming.
No.
The IEC61131 standard does allow the use of one dimensional arrays and queues, but support for these is quite cumbersome. It is not easy to write clean simple code when using arrays.
Support for For/Next and Do/While loops does exist, but can very quickly lead to problems with the program running out of time to finish within a single program scan if the number of loops becomes large. Take great care when writing any loops, because you can find the PLC simply unable to finish executing the program in the allowed time. BAD THINGS can happen in this case.
The cleanest way to write program code with a 1-D array of parameters might be to use "Extensible Parameters". There is an App on this site that will let you create these types of FBs.
Always remember the above warning about looping code when using Extensible Parameters !
https://forum-controlsystems.abb.com/...
The IEC61131 standard does allow the use of one dimensional arrays and queues, but support for these is quite cumbersome. It is not easy to write clean simple code when using arrays.
Support for For/Next and Do/While loops does exist, but can very quickly lead to problems with the program running out of time to finish within a single program scan if the number of loops becomes large. Take great care when writing any loops, because you can find the PLC simply unable to finish executing the program in the allowed time. BAD THINGS can happen in this case.
The cleanest way to write program code with a 1-D array of parameters might be to use "Extensible Parameters". There is an App on this site that will let you create these types of FBs.
Always remember the above warning about looping code when using Extensible Parameters !
https://forum-controlsystems.abb.com/...
Add new comment