Advantech AMAX-5000 Series User Manual page 153

Ethercat slice i/o modules
Hide thumbs Also See for AMAX-5000 Series:
Table of Contents

Advertisement

Software Trigger Configuration:
Configure Position Compare
Step0: Configure PDO, select Position Measure and Compare Control (0x1602) for
SM2 and Position Measure and Compare Status (0x1A02) for SM3.
Step1: Set Position_Compare_Source_Select (0x8000:07) to 0: SW
Step2: Set Position_Compare_Output_Polarity (0x8000:09) to 0: Initial Low; 1: Initial
High.
Set Output Pulse Width
Step3: Set Position_Compare_Output_Width (0x8000:0A) (Unit:10ns)
Note*: The actual output width is (Position_Compare_Output_Width + 2) * 10ns, and
the minimum value for Position_Compare_Output_Width is "1".
Set Position Compare Offset Value
Step4: Set Position_Compare_Direction (0x7000:0A) to 0: Forward counting; 1:
Reverse counting
Step5: Set Set_Position_Compare_Offset_Value (0x7000:12) (0 ~ 232).
Step6: Set Position_Compare_Offset (0x7000:09) to "1" to write the offset into the
buffer.
Step7: Read Set_Position_Compare_Offset_Done (0x6000:06), if the value is "1",
then the offset is written to the buffer successfully.
Step8: Set Position_Compare_Offset (0x7000:09) to "0" when buffer is written.
Step9: Read Set_Position_Compare_Offset_Done (0x6000:06) again, if the value is
"0", then the next offset value can be set to the buffer if needed.
Figure 6.37 Set Position Compare Offset Value
141
AMAX-5000 Series User Manual

Advertisement

Table of Contents
loading

Table of Contents