Liqa Macode
Member
I've got a rung that uses the first pass bit to initiate a For argument.
In the Routine named 'Alarm' I have something like this...
There are actually ten different strings, each containing ten different array elements (eg. Initstring[0] - Initstring[9]). I'm wanting to initially populate all one hundred array elements with the string '0000'.
I checked with Rockwell to see if it'd work this way, or if I'd need to put the Mid commands in a different ladder, and also since the For command is looping 10 times before continuing on, will it populate the variables, or just the final element in each of the ten arrays? Tech support said to test it out and see what happens.
It'd be easy to change down the road, but I'd like to get it right the first time.
In the Routine named 'Alarm' I have something like this...
S:FS ___________________FOR____
------||--------| FOR |--------
| |Routine Name: Alarm | |
| |Index: Fortag | |
| | 0 | |
| |Initial Value: 0 | |
| |Terminal Size: 10 | |
| |Step Size: 1 | |
| |_________________________| |
| |
| |
| __________________MID____ |
| |Middle String | |
|----|Source: default_string |----|
| '10000' |
|Qty: 4 |
| |
|Start: 2 |
| |
|Dest: Initstring[Fortag]|
| ?? |
|________________________|
There are actually ten different strings, each containing ten different array elements (eg. Initstring[0] - Initstring[9]). I'm wanting to initially populate all one hundred array elements with the string '0000'.
I checked with Rockwell to see if it'd work this way, or if I'd need to put the Mid commands in a different ladder, and also since the For command is looping 10 times before continuing on, will it populate the variables, or just the final element in each of the ten arrays? Tech support said to test it out and see what happens.
It'd be easy to change down the road, but I'd like to get it right the first time.
Last edited: