Yes, I did search for information first. Yes I looked through the limited help files that came with my Step 7. No I do not have any other books.
What I have done:
Machine does 3 basic sequences. I have 3 different FB's based on each sequence used to determine the next command number to send out (1 byte). I have (on paper) written a fourth FB to handle the actual setting of the command output byte (QB22), monitoring the acknowledge inputs (IB22), and setting Q21.5 when the acknowledge is completed correctly.
Item to consider:
Machine actually handle 2 sets of 3 basic sequences. Two simialr processes each with 3 FB's, each with a command byte and an acknowledge byte to be handled in the same manner. First set is QB/IB22, second set is QB/IB122.
What I would like to do:
In Ladder, not STL, write one FB to handle both command/ acknowledge sets. I would like to send the address of the command byte to the FB instead of hardcoding it and having two FB's.
Is it possible?
What I have done:
Machine does 3 basic sequences. I have 3 different FB's based on each sequence used to determine the next command number to send out (1 byte). I have (on paper) written a fourth FB to handle the actual setting of the command output byte (QB22), monitoring the acknowledge inputs (IB22), and setting Q21.5 when the acknowledge is completed correctly.
Item to consider:
Machine actually handle 2 sets of 3 basic sequences. Two simialr processes each with 3 FB's, each with a command byte and an acknowledge byte to be handled in the same manner. First set is QB/IB22, second set is QB/IB122.
What I would like to do:
In Ladder, not STL, write one FB to handle both command/ acknowledge sets. I would like to send the address of the command byte to the FB instead of hardcoding it and having two FB's.
Is it possible?