OK,
The Step controller for each Station is broke down into individual
sequences:
For example -
Part control
The code is as follows:
AN "Part Control"
JC M042
LAR1 P#M 146.4
A "ST1".SENSOR._8S5
JCN M004
LAR1 P#M 146.5
A "ST1".SENSOR._8S6
JCN M004
LAR1 P#M 146.6
A "ST1".SENSOR._8S7
JCN M004
LAR1 P#M 146.7
A "ST1".SENSOR._8S8
JCN M004
AN "TRANS-ENDE"
= "TRANS-ENDE"
M042: NOP 0
Part Control is set active by the sequencer,If part control isnt active, the sensor evaluation doesnt take place.
When part control is active each one of the above sensors must be ok to achieve "TRANS-ENDE" which tells the sequencer to write the next step which is in this case Clamp Parts.
Example
LAR1 P#M 146.4
A "ST1".SENSOR._8S5 //DB5.DBXxx.x
JCN M004
1. load Pointer ID for text list generation
2. load sensor address for evaluation
3. if ok move to next sensor and load pointer, If not ok jump to label M004
4 At label M004 there is a FC (not my effort) which uses the AR1 value to generate text to the user (M146.4 = 52)
52 in the text list will read "Waiting for Sensor xxx = On "
This is called every scan providing the station is set active
I hope this is clear, i'm terrible at explaining things.
I'd post the whole code but its big 120 networks +