Matthias von Zorn
Member
Hey all, some quick questions on rslogix 5000. Ive been tinkering around with logix 5000 for a small system, and ive noticed a few things..
1) Is it really not possible to define your own FBD? These seem like a better way of running checks on many devices that are essentially the same than ladder.
2) it seems like that to do a "function call" You need to do something like...
Create a "function" ladder, create a data structure for the function. Create the data structures for the devices (it matches the data strucutre of the function). Copy the device data to the function data, JSR to the function ladder, then copy the function data back to the device data. Repeat.
This doesnt seem very elegant, are there better ways?
Oh, and, if you have a single element boolean array, is there an easier way to reset the entire array to false without going through each element indivigually?
1) Is it really not possible to define your own FBD? These seem like a better way of running checks on many devices that are essentially the same than ladder.
2) it seems like that to do a "function call" You need to do something like...
Create a "function" ladder, create a data structure for the function. Create the data structures for the devices (it matches the data strucutre of the function). Copy the device data to the function data, JSR to the function ladder, then copy the function data back to the device data. Repeat.
This doesnt seem very elegant, are there better ways?
Oh, and, if you have a single element boolean array, is there an easier way to reset the entire array to false without going through each element indivigually?