TYPE MC_CAMSWITCH_TR : STRUCT
This STRUCT describes the switch positions of the tappets.
InOut:
| 
                   Name  | 
                
                   Type  | 
                
                   Comment  | 
              
| 
                   TrackNumber  | 
                
                   INT  | 
                
                   Number of the output; several position ranges per output are possible. [1..32]  | 
              
| 
                   FirstOnPosition  | 
                
                   LREAL  | 
                
                   If moving in positive direction, the first position where the switch is on, otherwise the last; may be > LastOnPosition which results in an "inverted" switch  | 
              
| 
                   LastOnPosition  | 
                
                   LREAL  | 
                
                   If moving in positive direction, the last position where the switch is on, otherwise the first; Used only in case CamSwitchMode = 0  | 
              
| 
                   AxisDirection  | 
                
                   INT  | 
                
                   0 = The output is switched in two directions, 1 = The output is only switched in positive direction, 2 = The output is only switched in negative direction  | 
              
| 
                   CamSwitchMode  | 
                
                   INT  | 
                
                   0 = The tappets are calculated position-based; 1 = The tappets are calculated time-based, whereby only the value of FirstOnPosition will be used and the output stays TRUE for the given time (Duration).  | 
              
| 
                   Duration  | 
                
                   TIME  | 
                
                   Period of time for which the tappet output stays TRUE in case of CAMSwitchMode = 1 .  | 
              
| 
                   bOn  | 
                
                   BOOL  | 
                
                   internal; used by MC_DigitalCamSwitch  | 
              
| 
                   CounterOff  | 
                
                   INT  | 
                
                   internal; used by MC_DigitalCamSwitch  |