Beckhoffcfg - plctask.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <BeckhoffCfg>
  3. <Controller Name="MASTER" IPAddress="10.4.6.75.1.1" PortAddress="851">
  4. <!-- Need to have at least one input and one output before Axis stuff -->
  5. <!-- All inputs first, then all outputs -->
  6. <!--////////////////////////////////////////////////// ALL INPUTS START //////////////////////////////////////////////////-->
  7. <!--VPW Main Start-->
  8. <Input Name="r_VPW_CHAMBER_CLOSED" Address="MAIN.VPW_DI_16CHANNEL_EL1819_N100_1" Invert="true" Type="Digital" DataType="bool"/>
  9. <Input Name="r_VPW_CHAMBER_OPENED" Address="MAIN.VPW_DI_16CHANNEL_EL1819_N100_2" Invert="true" Type="Digital" DataType="bool"/>
  10. <Input Name="r_VPW_LEAK_DETECT" Address="MAIN.VPW_DI_16CHANNEL_EL1819_N100_3" Invert="true" Type="Digital" DataType="bool"/>
  11. <Input Name="r_VPW_VAC_PUMP_PRESSURE" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_6" Scaling="758=0,0=32767" Type="Analog" DataType="int"/>
  12. <Input Name="r_VPW_BOOSTER_PUMP_STATUS" Address="MAIN.VPW_DI_16CHANNEL_EL1819_N100_9" Invert="true" Type="Digital" DataType="bool"/>
  13. <Input Name="r_VPW_DIW_TOTAL_FLOW" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_1" Scaling="0=0,20=32767" Type="Analog" DataType="int"/>
  14. <Input Name="r_VPW_DIW_PRESSURE" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_4" Scaling="0=0,100=32767" Type="Analog" DataType="int"/>
  15. <Input Name="r_VPW_DEGAS_PUMP_PRESSURE" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_5" Scaling="758=0,100=32767" Type="Analog" DataType="int"/>
  16. <Input Name="r_VPW_BOOSTER_PUMP_CURRENT" Address="MAIN.VPW_AO_8CHANNEL_0_10V_EL4008_N104_5" Scaling="0=0, 10=32767" Type="Analog" DataType="int"/>
  17. <!--VPW Main End-->
  18. <!--VPW1 Start-->
  19. <Input Name="r_VPW_DIW_CELL_1_FLOW" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_2" Scaling="0=0,8=32767" Type="Analog" DataType="int"/>
  20. <Input Name="r_VPW_CELL_1_VAC_PRESSURE" Address="MAIN.VPW_AI_8CHANNEL_0_10V_EL3068_N105_1" Scaling="0=0,10=32767" Type="Analog" DataType="int"/>
  21. <!--VPW1 End-->
  22. <!--VPW2 Start-->
  23. <Input Name="r_VPW_DIW_CELL_2_FLOW" Address="MAIN.VPW_AI_8CHANNEL_4_20mA_EL3058_N102_3" Scaling="0=0,8=32767" Type="Analog" DataType="int"/>
  24. <Input Name="r_VPW_CELL_2_VAC_PRESSURE" Address="MAIN.VPW_AI_8CHANNEL_0_10V_EL3068_N105_2" Scaling="0=0,10=32767" Type="Analog" DataType="int"/>
  25. <!--VPW2 End-->
  26. <!--////////////////////////////////////////////////// ALL INPUTS END //////////////////////////////////////////////////-->
  27. <!--////////////////////////////////////////////////// ALL OUTPUTS BEGIN //////////////////////////////////////////////////-->
  28. <!--VPW Main Start-->
  29. <Output Name="c_VPW_CHAMBER_CLOSE" Address="MAIN.MOTION_DO_16CHANNEL_EL2809_N401_15" Type="Digital" Invert="true" DataType="bool"/>
  30. <Output Name="c_VPW_VACUUM_PUMP_POWER" Address="MAIN.VPW_DO_16CHANNEL_EL2809_101_5" Type="Digital" Invert="false" DataType="bool"/>
  31. <Output Name="c_VPW_DEGAS_PUMP_ENABLE" Address="MAIN.VPW_DO_16CHANNEL_EL2809_101_6" Type="Digital" Invert="false" DataType="bool"/>
  32. <Output Name="c_VPW_BOOSTER_PUMP_ENABLE" Address="MAIN.VPW_DO_16CHANNEL_EL2809_101_7" Type="Digital" Invert="false" DataType="bool"/>
  33. <Output Name="c_VPW_VACUUM_PUMP_ENABLE" Address="MAIN.MAIN_IO_RELAY_4CHANNEL_EL2624_N106_1" Type="Digital" Invert="false" DataType="bool"/>
  34. <Output Name="c_VPW_VACUUM_PUMP_SPEED_ENABLE" Address="MAIN.MAIN_IO_RELAY_4CHANNEL_EL2624_N106_2" Type="Digital" Invert="false" DataType="bool"/>
  35. <Output Name="c_VPW_VACUUM_PUMP_SPEED" Address="MAIN.VPW_AO_8CHANNEL_0_10V_EL4008_N104_1" Scaling="0=0,20=32767" Type="Analog" DataType="int"/>
  36. <Output Name="c_VPW_BOOSTER_PUMP_SPPED" Address="MAIN.VPW_AO_8CHANNEL_0_10V_EL4008_N104_5" Scaling="300=0,10000=32767" Type="Analog" DataType="int"/>
  37. <Output Name="c_VPW_DIW_ENABLE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="0" DataType="byte"/>
  38. <Output Name="c_VPW_DIW_PROCESS" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="1" DataType="byte"/>
  39. <Output Name="c_VPW_DIW_DEGAS" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="0" DataType="byte"/>
  40. <Output Name="c_VPW_DEGAS_ADJUST" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="1" DataType="byte"/>
  41. <Output Name="c_VPW_DEGAS_PURGE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="2" DataType="byte"/>
  42. <!--VPW Main End-->
  43. <!--VPW1 Start-->
  44. <Output Name="c_VPW_1_FLOW_DRIP" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="2" DataType="byte"/>
  45. <Output Name="c_VPW_1_FLOW_SMALL" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="3" DataType="byte"/>
  46. <Output Name="c_VPW_1_FLOW_LARGE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="4" DataType="byte"/>
  47. <Output Name="c_VPW_1_VACUUM_VALVE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="3" DataType="byte"/>
  48. <Output Name="c_VPW_1_VENT_VALVE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="5" DataType="byte"/>
  49. <Output Name="c_VPW_1_DIW_DRAIN" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE2" Type="Digital" BitOperated="true" Bit="0" DataType="byte"/>
  50. <!--VPW1 End-->
  51. <!--VPW2 Start-->
  52. <Output Name="c_VPW_2_FLOW_DRIP" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="5" DataType="byte"/>
  53. <Output Name="c_VPW_2_FLOW_SMALL" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="6" DataType="byte"/>
  54. <Output Name="c_VPW_2_FLOW_LARGE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE0" Type="Digital" BitOperated="true" Bit="7" DataType="byte"/>
  55. <Output Name="c_VPW_2_VACUUM_VALVE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="4" DataType="byte"/>
  56. <Output Name="c_VPW_2_VENT_VALVE" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE1" Type="Digital" BitOperated="true" Bit="6" DataType="byte"/>
  57. <Output Name="c_VPW_2_DIW_DRAIN" Address="MAIN.VPW_PNEU_SMC_EX260_BYTE2" Type="Digital" BitOperated="true" Bit="1" DataType="byte"/>
  58. <!--VPW2 End-->
  59. <!--////////////////////////////////////////////////// ALL OUTPUTS END //////////////////////////////////////////////////-->
  60. <!--////////////////////////////////////////////////// ALL COUNTERS BEGIN //////////////////////////////////////////////////-->
  61. <!--////////////////////////////////////////////////// ALL COUNTERS END //////////////////////////////////////////////////-->
  62. <!--////////////////////////////////////////////////// ALL AXIS BEGIN //////////////////////////////////////////////////-->
  63. <Axis Name="VPW1.Rotation" MotorType="Yaskawa" COEAddress="192.168.0.14.4.1" COEPort="1016" DebugLogging="false">
  64. <Input Address="MAIN.VPW1RotationStatusWord" Type="StatusWord" DataType="uint"/>
  65. <Input Address="MAIN.VPW1RotationDigitalInputs" Type="DigitalInputs" DataType="udint"/>
  66. <Input Address="MAIN.VPW1RotationMotorPosition" Type="MotorPosition" DataType="dint"/>
  67. <Input Address="MAIN.VPW1RotationPositionError" Type="PositionError" DataType="dint"/>
  68. <Input Address="MAIN.VPW1RotationActualVelocity" Type="ActualVelocity" DataType="dint"/>
  69. <Input Address="MAIN.VPW1RotationActualTorque" Type="ActualTorque" DataType="int"/>
  70. <!-- Input Address="MAIN.Loader1Rotation_DigitalOutputs" Type="DigitalOutputs" DataType="dint"/ -->
  71. <Input Address="0x607D:01" Type="SoftwareLimitMinus" DataType="dint"/>
  72. <Input Address="0x607D:02" Type="SoftwareLimitPlus" DataType="dint"/>
  73. <Input Address="0x6098:00" Type="HomingMethod" DataType="byte"/>
  74. <Input Address="0x607C:00" Type="HomeOffset" DataType="dint"/>
  75. <Input Address="0x6099:01" Type="HomingVelocity" DataType="dint"/>
  76. <Input Address="0x6099:02" Type="HomingVelocitySlow" DataType="dint"/>
  77. <Input Address="0x609A:00" Type="HomingAccel" DataType="dint"/>
  78. <Input Address="0x2403:00" Type="NegativeTorqueLimit" DataType="uint"/>
  79. <Input Address="0x2402:00" Type="PositiveTorqueLimit" DataType="uint"/>
  80. <Input Address="0x6085:00" Type="EStopDecel" DataType="udint"/>
  81. <Input Address="0x2406:00" Type="EStopTorque" DataType="uint"/>
  82. <Input Address="0x607F:00" Type="VelocityLimit" DataType="udint"/>
  83. <Input Address="0x2522:00" Type="PositionWindow" DataType="udint"/>
  84. <Input Address="0x2520:00" Type="FollowingErrorWindow" DataType="udint"/>
  85. <Input Address="0x603F:00" Type="ErrorCode" DataType="uint"/>
  86. <Output Address="MAIN.VPW1RotationControlWord" Type="ControlWord" DataType="uint"/>
  87. <Output Address="MAIN.VPW1RotationModeOfOperation" Type="ModeOfOperation" DataType="byte"/>
  88. <Output Address="MAIN.VPW1RotationTargetPosition" Type="TargetPosition" DataType="dint"/>
  89. <Output Address="MAIN.VPW1RotationProfileVelocity" Type="ProfileVelocity" DataType="dint"/>
  90. <Output Address="MAIN.VPW1RotationProfileAccel" Type="ProfileAccel" DataType="dint"/>
  91. <Output Address="MAIN.VPW1RotationProfileDecel" Type="ProfileDecel" DataType="dint"/>
  92. <!-- Output Address="MAIN.Loader1Rotation_DigitalOutputs" Type="DigitalOutputs" DataType="dint"/ -->
  93. <Output Address="0x607D:01" Type="SoftwareLimitMinus" DataType="dint"/>
  94. <Output Address="0x607D:02" Type="SoftwareLimitPlus" DataType="dint"/>
  95. <Output Address="0x607C:00" Type="HomeOffset" DataType="dint"/>
  96. <Output Address="0x6098:00" Type="HomingMethod" DataType="byte"/>
  97. <Output Address="0x6099:01" Type="HomingVelocity" DataType="dint"/>
  98. <Output Address="0x6099:02" Type="HomingVelocitySlow" DataType="dint"/>
  99. <Output Address="0x609A:00" Type="HomingAccel" DataType="dint"/>
  100. <Output Address="0x2403:00" Type="NegativeTorqueLimit" DataType="uint"/>
  101. <Output Address="0x2402:00" Type="PositiveTorqueLimit" DataType="uint"/>
  102. <MotorType>Servo</MotorType>
  103. <MotorDriveDirection>0</MotorDriveDirection>
  104. <EncoderFeedbackDirectionMValue>0</EncoderFeedbackDirectionMValue>
  105. <EncoderFeedbackDirectionNValue>0</EncoderFeedbackDirectionNValue>
  106. <ReverseLimitSwitchPolarity>0</ReverseLimitSwitchPolarity>
  107. <ForwardLimitSwitchPolarity>0</ForwardLimitSwitchPolarity>
  108. <HomeSwitchPolarity>0</HomeSwitchPolarity>
  109. <HomingMethod>24</HomingMethod>
  110. <HomeConfig>0</HomeConfig>
  111. <HomingOffset>0</HomingOffset>
  112. <HomingSpeedHomeSwitch>1500000</HomingSpeedHomeSwitch>
  113. <HomingSpeedEncoderIndex>0</HomingSpeedEncoderIndex>
  114. <HomingAccelDecel>10000000</HomingAccelDecel>
  115. <HomingTimeOut>60000</HomingTimeOut>
  116. <ProportionalGain>0</ProportionalGain>
  117. <IntegralGain>0</IntegralGain>
  118. <DerivativeGain>0</DerivativeGain>
  119. <IntegralLimit>0</IntegralLimit>
  120. <ErrorLimit>6766</ErrorLimit>
  121. <VoltageOffset>0</VoltageOffset>
  122. <!-- -193 degrees * 169161 = -32648073 -->
  123. <ReverseSoftwareLimit>-46180953</ReverseSoftwareLimit>
  124. <!-- 13 degrees * 169161 = 2199093 -->
  125. <ForwardSoftwareLimit>2706576</ForwardSoftwareLimit>
  126. <Speed>360</Speed>
  127. <Acceleration>1000</Acceleration>
  128. <Deceleration>1000</Deceleration>
  129. <Jerk>0</Jerk>
  130. <FeedforwardVelocity>0</FeedforwardVelocity>
  131. <FeedforwardAcceleration>0</FeedforwardAcceleration>
  132. <OffOnError>0</OffOnError>
  133. </Axis>
  134. <Axis Name="VPW2.Rotation" MotorType="Yaskawa" COEAddress="192.168.0.14.4.1" COEPort="1016" DebugLogging="false">
  135. <Input Address="MAIN.VPW2RotationStatusWord" Type="StatusWord" DataType="uint"/>
  136. <Input Address="MAIN.VPW2RotationDigitalInputs" Type="DigitalInputs" DataType="udint"/>
  137. <Input Address="MAIN.VPW2RotationMotorPosition" Type="MotorPosition" DataType="dint"/>
  138. <Input Address="MAIN.VPW2RotationPositionError" Type="PositionError" DataType="dint"/>
  139. <Input Address="MAIN.VPW2RotationActualVelocity" Type="ActualVelocity" DataType="dint"/>
  140. <Input Address="MAIN.VPW2RotationActualTorque" Type="ActualTorque" DataType="int"/>
  141. <!-- Input Address="MAIN.Loader1Rotation_DigitalOutputs" Type="DigitalOutputs" DataType="dint"/ -->
  142. <Input Address="0x607D:01" Type="SoftwareLimitMinus" DataType="dint"/>
  143. <Input Address="0x607D:02" Type="SoftwareLimitPlus" DataType="dint"/>
  144. <Input Address="0x6098:00" Type="HomingMethod" DataType="byte"/>
  145. <Input Address="0x607C:00" Type="HomeOffset" DataType="dint"/>
  146. <Input Address="0x6099:01" Type="HomingVelocity" DataType="dint"/>
  147. <Input Address="0x6099:02" Type="HomingVelocitySlow" DataType="dint"/>
  148. <Input Address="0x609A:00" Type="HomingAccel" DataType="dint"/>
  149. <Input Address="0x2403:00" Type="NegativeTorqueLimit" DataType="uint"/>
  150. <Input Address="0x2402:00" Type="PositiveTorqueLimit" DataType="uint"/>
  151. <Input Address="0x6085:00" Type="EStopDecel" DataType="udint"/>
  152. <Input Address="0x2406:00" Type="EStopTorque" DataType="uint"/>
  153. <Input Address="0x607F:00" Type="VelocityLimit" DataType="udint"/>
  154. <Input Address="0x2522:00" Type="PositionWindow" DataType="udint"/>
  155. <Input Address="0x2520:00" Type="FollowingErrorWindow" DataType="udint"/>
  156. <Input Address="0x603F:00" Type="ErrorCode" DataType="uint"/>
  157. <Output Address="MAIN.VPW2RotationControlWord" Type="ControlWord" DataType="uint"/>
  158. <Output Address="MAIN.VPW2RotationModeOfOperation" Type="ModeOfOperation" DataType="byte"/>
  159. <Output Address="MAIN.VPW2RotationTargetPosition" Type="TargetPosition" DataType="dint"/>
  160. <Output Address="MAIN.VPW2RotationProfileVelocity" Type="ProfileVelocity" DataType="dint"/>
  161. <Output Address="MAIN.VPW2RotationProfileAccel" Type="ProfileAccel" DataType="dint"/>
  162. <Output Address="MAIN.VPW2RotationProfileDecel" Type="ProfileDecel" DataType="dint"/>
  163. <!-- Output Address="MAIN.Loader1Rotation_DigitalOutputs" Type="DigitalOutputs" DataType="dint"/ -->
  164. <Output Address="0x607D:01" Type="SoftwareLimitMinus" DataType="dint"/>
  165. <Output Address="0x607D:02" Type="SoftwareLimitPlus" DataType="dint"/>
  166. <Output Address="0x607C:00" Type="HomeOffset" DataType="dint"/>
  167. <Output Address="0x6098:00" Type="HomingMethod" DataType="byte"/>
  168. <Output Address="0x6099:01" Type="HomingVelocity" DataType="dint"/>
  169. <Output Address="0x6099:02" Type="HomingVelocitySlow" DataType="dint"/>
  170. <Output Address="0x609A:00" Type="HomingAccel" DataType="dint"/>
  171. <Output Address="0x2403:00" Type="NegativeTorqueLimit" DataType="uint"/>
  172. <Output Address="0x2402:00" Type="PositiveTorqueLimit" DataType="uint"/>
  173. <MotorType>Servo</MotorType>
  174. <MotorDriveDirection>0</MotorDriveDirection>
  175. <EncoderFeedbackDirectionMValue>0</EncoderFeedbackDirectionMValue>
  176. <EncoderFeedbackDirectionNValue>0</EncoderFeedbackDirectionNValue>
  177. <ReverseLimitSwitchPolarity>0</ReverseLimitSwitchPolarity>
  178. <ForwardLimitSwitchPolarity>0</ForwardLimitSwitchPolarity>
  179. <HomeSwitchPolarity>0</HomeSwitchPolarity>
  180. <HomingMethod>24</HomingMethod>
  181. <HomeConfig>0</HomeConfig>
  182. <HomingOffset>0</HomingOffset>
  183. <HomingSpeedHomeSwitch>1500000</HomingSpeedHomeSwitch>
  184. <HomingSpeedEncoderIndex>0</HomingSpeedEncoderIndex>
  185. <HomingAccelDecel>10000000</HomingAccelDecel>
  186. <HomingTimeOut>60000</HomingTimeOut>
  187. <ProportionalGain>0</ProportionalGain>
  188. <IntegralGain>0</IntegralGain>
  189. <DerivativeGain>0</DerivativeGain>
  190. <IntegralLimit>0</IntegralLimit>
  191. <ErrorLimit>6766</ErrorLimit>
  192. <VoltageOffset>0</VoltageOffset>
  193. <!-- -193 degrees * 169161 = -32648073 -->
  194. <ReverseSoftwareLimit>-46180953</ReverseSoftwareLimit>
  195. <!-- 13 degrees * 169161 = 2199093 -->
  196. <ForwardSoftwareLimit>2706576</ForwardSoftwareLimit>
  197. <Speed>15000000</Speed>
  198. <Acceleration>10000000</Acceleration>
  199. <Deceleration>10000000</Deceleration>
  200. <Jerk>0</Jerk>
  201. <FeedforwardVelocity>0</FeedforwardVelocity>
  202. <FeedforwardAcceleration>0</FeedforwardAcceleration>
  203. <OffOnError>0</OffOnError>
  204. </Axis>
  205. </Controller>
  206. </BeckhoffCfg>