I am building a new program in step 7. The way I normally structure the program, I have a main, then several subprograms for different parts of the machine. Most subprograms will be in LAD, but some networks within each program will be in STL and call some FC's I have already designed.
If I make OB1 my main, do I program the subprograms as FB's and call them from a box, or FC's and use the (call) operand?
Or should they be OB's?
Also looking for a block that looks like the AB LIM block. I need a block that can have three integer inputs, then a boolean output. The inputs would be a low(constant), and high(constant), and the input variable. The output would be true if the input variable is within the high and low limits.
If I make OB1 my main, do I program the subprograms as FB's and call them from a box, or FC's and use the (call) operand?
Or should they be OB's?
Also looking for a block that looks like the AB LIM block. I need a block that can have three integer inputs, then a boolean output. The inputs would be a low(constant), and high(constant), and the input variable. The output would be true if the input variable is within the high and low limits.