Rockwell Automation Publication 1756-AT017A-EN-P - January 2013
14     Position-based Output Control with the MAOC Instruction
Figure 13 shows the configuration of the MAOC instruction for this example.
Figure 13 - MAOC Instruction for Strobe Trigger
Table 4 - MAOC Operands for Strobe Trigger 
Operand Configuration
Axis Associate the axis with the Conveyor_Feedback tag.
Execution Target Specify a value of 0…7. Each output cam on an axis requires a unique identifier.
Motion Control Specify a unique tag to identify the motion instruction.
Output Set the output to use the data structure of the output module that triggers the 
strobe.
Input In this example, the input is ignored because none of the latch types include the 
Enable feature.
Output Cam Select the output cam profile defined in the Output Cam Editor, as shown in 
Figure 12.
Cam Start Position Set to 0. The output cam starts with a position of 0.0 when the axis moves 
forward and crosses 0.0 mm.
Cam End Position Set to 1000.0. The output cam rolls over from 1000.0 to 0.0 when it is moving 
forward, based on the cam start and end positions.
Output Compensation Use the default tag values for the Output Compensation operand because no 
compensation is required in this example.
Execution Mode Set to Continuous. The instruction must run continuously so that each new box 
gets photographed without having to reset, but will start only when the 
conveyor is moving forward.
Execution Schedule Set to Forward Only. The instruction starts as soon as the axis moves past the axis 
arm position in the forward direction.