Modifica XML dell'agent in OUT per revisione insieme a Jessica
This commit is contained in:
+108
-52
@@ -11,22 +11,24 @@
|
||||
<DataItem category="SAMPLE" id="CLOCK" type="CLOCK_TIME"/>
|
||||
<DataItem category="SAMPLE" id="POWER" type="WATTAGE"/>
|
||||
<DataItem category="EVENT" id="OperatorId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="PartID" type="PART_ID"/>
|
||||
<DataItem category="EVENT" id="PZ_TOT" type="PART_COUNT"/>
|
||||
<DataItem category="EVENT" id="PZ_OK" type="PART_COUNT" subtype="GOOD"/>
|
||||
<DataItem category="EVENT" id="PZ_KO" type="PART_COUNT" subtype="BAD"/>
|
||||
<!-- levare -->
|
||||
<!-- <DataItem category="EVENT" id="PZ_OK" type="PART_COUNT" subtype="GOOD"/>
|
||||
<DataItem category="EVENT" id="PZ_KO" type="PART_COUNT" subtype="BAD"/> -->
|
||||
<DataItem category="EVENT" id="FUNCT_MODE" type="MESSAGE"/>
|
||||
<DataItem category="CONDITION" id="System" type="SYSTEM"/>
|
||||
<!-- levare -->
|
||||
<!-- <DataItem category="CONDITION" id="System" type="SYSTEM"/> -->
|
||||
<DataItem category="CONDITION" id="CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="PLC" type="LOGIC"/>
|
||||
<DataItem category="CONDITION" id="HMI" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="General" type="SYSTEM"/>
|
||||
<!-- levare xora? -->
|
||||
<!-- <DataItem category="CONDITION" id="HMI" type="SYSTEM"/> -->
|
||||
</DataItems>
|
||||
<Components>
|
||||
<Axes id="ax" name="Axes">
|
||||
<Components>
|
||||
<Linear id="Axis_01" name="Asse X (1)">
|
||||
<Linear id="Axis_01" name="Asse X">
|
||||
<DataItems>
|
||||
<!-- descrizione, es "X" che POTREBBE cambiare -->
|
||||
<DataItem category="EVENT" id="Axis_01_Descr" type="MESSAGE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_01_PosAct" name="Pos asse X (1) actual" nativeUnits="MILLIMETER" subType="ACTUAL" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_01_PosTgt" name="Pos asse X (1) target" nativeUnits="MILLIMETER" subType="COMMANDED" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_01_Load" name="Load asse X (1)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
@@ -39,12 +41,18 @@
|
||||
<DataItem category="SAMPLE" id="Axis_01_AccelAct" name="Accelerazione asse X (1)" nativeUnits="MILLIMETER/SECOND^2" type="ACCELERATION" units="MILLIMETER/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_01_AccTime" name="Tempo impiego cumulato asse X (1)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_01_Battery" name="Valore batteria asse X (1)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem type="TEMPERATURE" id="Temp_01_Value" category="SAMPLE" name="Sonda Temperatura asse 1" units="DEGREE" />
|
||||
<!-- aggiungere gli allarmi x ogni altro asse -->
|
||||
<DataItem category="CONDITION" id="AX01_CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="AX01_PLC" type="LOGIC"/>
|
||||
<!--<DataItem category="CONDITION" id="Xloadc" type="LOAD"/>
|
||||
<DataItem category="CONDITION" id="Xsystem" type="SYSTEM"/>-->
|
||||
</DataItems>
|
||||
</Linear>
|
||||
<Linear id="Axis_02" name="Asse Y (2)">
|
||||
<Linear id="Axis_02" name="Asse Y">
|
||||
<DataItems>
|
||||
<!-- descrizione, es "Asse Y (2)" che POTREBBE cambiare -->
|
||||
<DataItem category="EVENT" id="Axis_02_Descr" type="MESSAGE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_02_PosAct" name="Pos asse Y (2) actual" nativeUnits="MILLIMETER" subType="ACTUAL" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_02_PosTgt" name="Pos asse Y (2) target" nativeUnits="MILLIMETER" subType="COMMANDED" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_02_Load" name="Load asse Y (2)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
@@ -57,12 +65,18 @@
|
||||
<DataItem category="SAMPLE" id="Axis_02_AccelAct" name="Accelerazione asse Y (2)" nativeUnits="MILLIMETER/SECOND^2" type="ACCELERATION" units="MILLIMETER/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_02_AccTime" name="Tempo impiego cumulato asse Y (2)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_02_Battery" name="Valore batteria asse Y (2)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem type="TEMPERATURE" id="Temp_02_Value" category="SAMPLE" name="Sonda Temperatura asse 2" units="DEGREE" />
|
||||
<!-- aggiungere gli allarmi x ogni altro asse -->
|
||||
<DataItem category="CONDITION" id="AX02_CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="AX02_PLC" type="LOGIC"/>
|
||||
<!--<DataItem category="CONDITION" id="Yloadc" type="LOAD"/>
|
||||
<DataItem category="CONDITION" id="Ysystem" type="SYSTEM"/>-->
|
||||
</DataItems>
|
||||
</Linear>
|
||||
<Linear id="Axis_03" name="Asse Z (3)">
|
||||
<Linear id="Axis_03" name="Asse Z">
|
||||
<DataItems>
|
||||
<!-- descrizione, es "Asse Z (3)" che POTREBBE cambiare -->
|
||||
<DataItem category="EVENT" id="Axis_02_Descr" type="MESSAGE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_03_PosAct" name="Pos asse Z (3) actual" nativeUnits="MILLIMETER" subType="ACTUAL" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_03_PosTgt" name="Pos asse Z (3) target" nativeUnits="MILLIMETER" subType="COMMANDED" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_03_Load" name="Load asse Z (3)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
@@ -75,11 +89,38 @@
|
||||
<DataItem category="SAMPLE" id="Axis_03_AccelAct" name="Accelerazione asse Z (3)" nativeUnits="MILLIMETER/SECOND^2" type="ACCELERATION" units="MILLIMETER/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_03_AccTime" name="Tempo impiego cumulato asse Z (3)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_03_Battery" name="Valore batteria asse Z (3)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem type="TEMPERATURE" id="Temp_03_Value" category="SAMPLE" name="Sonda Temperatura asse 3" units="DEGREE" />
|
||||
<!-- aggiungere gli allarmi x ogni altro asse -->
|
||||
<DataItem category="CONDITION" id="AX03_CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="AX03_PLC" type="LOGIC"/>
|
||||
<!--<DataItem category="CONDITION" id="Xloadc" type="LOAD"/>
|
||||
<DataItem category="CONDITION" id="Xsystem" type="SYSTEM"/>-->
|
||||
</DataItems>
|
||||
</Linear>
|
||||
<Linear id="Axis_06" name="Asse U">
|
||||
<DataItems>
|
||||
<!-- Descrizione, es "U" che POTREBBE cambiare se si sposta di path -->
|
||||
<DataItem category="EVENT" id="Axis_06_Descr" type="MESSAGE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_PosAct" name="Pos asse U (6) actual" nativeUnits="MILLIMETER" subType="ACTUAL" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_PosTgt" name="Pos asse U (6) target" nativeUnits="MILLIMETER" subType="COMMANDED" type="POSITION" units="MILLIMETER"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_Load" name="Load asse U (6)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="EVENT" id="Axis_06_MainProc" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_IsMast" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_MastId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_Dir" type="DIRECTION"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_FeedAct" name="FEEDRATE Asse U (6)" subType="ACTUAL" type="AXIS_FEEDRATE" units="MILLIMETER/SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_FeedOver" name="FEEDRATE OVERRIDE Asse U (6)" subType="OVERRIDE" type="AXIS_FEEDRATE" nativeUnits="PERCENT" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_AccelAct" name="Accelerazione asse U (6)" nativeUnits="MILLIMETER/SECOND^2" type="ACCELERATION" units="MILLIMETER/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_AccTime" name="Tempo impiego cumulato asse U (6)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_Battery" name="Valore batteria asse U (6)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem type="TEMPERATURE" id="Temp_06_Value" category="SAMPLE" name="Sonda Temperatura asse 6" units="DEGREE" />
|
||||
<!-- aggiungere gli allarmi x ogni altro asse -->
|
||||
<DataItem category="CONDITION" id="AX06_CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="AX06_PLC" type="LOGIC"/>
|
||||
<!--<DataItem category="CONDITION" id="Xloadc" type="LOAD"/>
|
||||
<DataItem category="CONDITION" id="Xsystem" type="SYSTEM"/>-->
|
||||
</DataItems>
|
||||
</Linear>
|
||||
<Rotary id="Axis_04" name="Asse I (4)">
|
||||
<DataItems>
|
||||
<DataItem category="SAMPLE" id="Axis_04_PosAct" name="Pos asse I (4) actual" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_PosTgt" name="Pos asse I (4) target" nativeUnits="DEGREE" subType="COMMANDED" type="ANGLE" units="DEGREE"/>
|
||||
@@ -105,20 +146,20 @@
|
||||
<DataItem category="SAMPLE" id="cl3" name="Cload" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>-->
|
||||
</DataItems>
|
||||
</Rotary>
|
||||
<Rotary id="Axis_05" name="Asse J (5)">
|
||||
<Rotary id="Axis_04" name="Asse B">
|
||||
<DataItems>
|
||||
<DataItem category="SAMPLE" id="Axis_05_PosAct" name="Pos asse J (5) actual" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_PosTgt" name="Pos asse J (5) target" nativeUnits="DEGREE" subType="COMMANDED" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_Load" name="Load asse J (5)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="EVENT" id="Axis_05_MainProc" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_IsMast" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_MastId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_Dir" type="DIRECTION"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_FeedAct" name="ROT SPEED Asse J (5)" subType="ACTUAL" type="ROTARY_VELOCITY" units="REVOLUTION/MINUTE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_FeedOver" name="ROT SPEED OVERRIDE Asse J (5)" subType="OVERRIDE" type="ROTARY_VELOCITY" nativeUnits="PERCENT" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_AccelAct" name="Accelerazione angolare asse J (5)" nativeUnits="DEGREE/SECOND^2" type="ANGULAR_ACCELERATION" units="DEGREE/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_AccTime" name="Tempo impiego cumulato asse J (5)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_Battery" name="Valore batteria asse J (5)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_PosAct" name="Pos asse J (4) actual" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_PosTgt" name="Pos asse J (4) target" nativeUnits="DEGREE" subType="COMMANDED" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_Load" name="Load asse J (4)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="EVENT" id="Axis_04_MainProc" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_04_IsMast" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_04_MastId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_04_Dir" type="DIRECTION"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_FeedAct" name="ROT SPEED Asse J (4)" subType="ACTUAL" type="ROTARY_VELOCITY" units="REVOLUTION/MINUTE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_FeedOver" name="ROT SPEED OVERRIDE Asse J (4)" subType="OVERRIDE" type="ROTARY_VELOCITY" nativeUnits="PERCENT" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_AccelAct" name="Accelerazione angolare asse J (4)" nativeUnits="DEGREE/SECOND^2" type="ANGULAR_ACCELERATION" units="DEGREE/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_AccTime" name="Tempo impiego cumulato asse J (4)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_04_Battery" name="Valore batteria asse J (4)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
|
||||
<!--<DataItem category="EVENT" id="cm" name="Cmode" type="ROTARY_MODE">
|
||||
<Constraints>
|
||||
@@ -131,20 +172,20 @@
|
||||
<DataItem category="SAMPLE" id="cl3" name="Cload" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>-->
|
||||
</DataItems>
|
||||
</Rotary>
|
||||
<Rotary id="Axis_06" name="Asse K (6)">
|
||||
<Rotary id="Axis_05" name="Asse C (5)">
|
||||
<DataItems>
|
||||
<DataItem category="SAMPLE" id="Axis_06_PosAct" name="Pos asse K (6) actual" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_PosTgt" name="Pos asse K (6) target" nativeUnits="DEGREE" subType="COMMANDED" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_Load" name="Load asse K (6)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="EVENT" id="Axis_06_MainProc" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_IsMast" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_MastId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_06_Dir" type="DIRECTION"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_FeedAct" name="ROT SPEED Asse K (6)" subType="ACTUAL" type="ROTARY_VELOCITY" units="REVOLUTION/MINUTE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_FeedOver" name="ROT SPEED OVERRIDE Asse K (6)" subType="OVERRIDE" type="ROTARY_VELOCITY" nativeUnits="PERCENT" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_AccelAct" name="Accelerazione angolare asse K (6)" nativeUnits="DEGREE/SECOND^2" type="ANGULAR_ACCELERATION" units="DEGREE/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_AccTime" name="Tempo impiego cumulato asse K (6)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_06_Battery" name="Valore batteria asse K (6)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_PosAct" name="Pos asse K (5) actual" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_PosTgt" name="Pos asse K (5) target" nativeUnits="DEGREE" subType="COMMANDED" type="ANGLE" units="DEGREE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_Load" name="Load asse K (5)" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="EVENT" id="Axis_05_MainProc" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_IsMast" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_MastId" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Axis_05_Dir" type="DIRECTION"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_FeedAct" name="ROT SPEED Asse K (5)" subType="ACTUAL" type="ROTARY_VELOCITY" units="REVOLUTION/MINUTE"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_FeedOver" name="ROT SPEED OVERRIDE Asse K (5)" subType="OVERRIDE" type="ROTARY_VELOCITY" nativeUnits="PERCENT" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_AccelAct" name="Accelerazione angolare asse K (5)" nativeUnits="DEGREE/SECOND^2" type="ANGULAR_ACCELERATION" units="DEGREE/SECOND^2"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_AccTime" name="Tempo impiego cumulato asse K (5)" nativeUnits="SECOND" type="ACCUMULATED_TIME" units="SECOND"/>
|
||||
<DataItem category="SAMPLE" id="Axis_05_Battery" name="Valore batteria asse K (5)" nativeUnits="VOLT" type="VOLTAGE" units="VOLT"/>
|
||||
|
||||
<!--<DataItem category="EVENT" id="cm" name="Cmode" type="ROTARY_MODE">
|
||||
<Constraints>
|
||||
@@ -172,19 +213,23 @@
|
||||
<DataItems>
|
||||
<DataItem category="EVENT" id="Message" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="E_STOP" type="EMERGENCY_STOP"/>
|
||||
<DataItem category="CONDITION" id="clp" type="LOGIC_PROGRAM"/>
|
||||
<DataItem category="CONDITION" id="motion" type="MOTION_PROGRAM"/>
|
||||
<DataItem category="CONDITION" id="system" type="SYSTEM"/>
|
||||
</DataItems>
|
||||
<Components>
|
||||
<Path id="Path_01" name="Path 01">
|
||||
<DataItems>
|
||||
<DataItem category="EVENT" id="PartID" type="PART_ID"/>
|
||||
<DataItem category="EVENT" id="PZ_TOT" type="PART_COUNT"/>
|
||||
<!-- Aggiungere questa variabile x indicare se il path è in lavorazione o asservimento LAVOR/ASSERV-->
|
||||
<DataItem category="EVENT" id="PathType" type="MESSAGE"/>
|
||||
<!-- Servono strobe MST + Sstatus /Run EXE mode x ogni path -->
|
||||
<DataItem category="EVENT" id="Cod_M" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Cod_S" type="MESSAGE"/>
|
||||
<DataItem category="EVENT" id="Cod_T" type="MESSAGE"/>
|
||||
<!-- modificare elenco secondo lista CMS AUTO/EDIT/MDI/JOG/JOGINC/REF/HANDLE -->
|
||||
<DataItem category="EVENT" id="RUN_MODE" type="CONTROLLER_MODE"/>
|
||||
<DataItem category="EVENT" id="CurrProg" type="PROGRAM"/>
|
||||
<DataItem category="EVENT" id="CurrProg_RowNum" type="LINE"/>
|
||||
<!-- RUN/HOLD/FEED_HOLD/... -->
|
||||
<DataItem category="EVENT" id="EXECUTION" type="EXECUTION"/>
|
||||
<DataItem category="SAMPLE" id="Path_01_PosActX" nativeUnits="MILLIMETER" subType="ACTUAL" type="PATH_POSITION" units="MILLIMETER" name="Posizione X"/>
|
||||
<DataItem category="SAMPLE" id="Path_01_PosActY" nativeUnits="MILLIMETER" subType="ACTUAL" type="PATH_POSITION" units="MILLIMETER" name="Posizione Y"/>
|
||||
@@ -194,17 +239,27 @@
|
||||
<DataItem category="SAMPLE" id="Path_01_PosActK" nativeUnits="DEGREE" subType="ACTUAL" type="ANGLE" units="DEGREE" name="Angolo K"/>
|
||||
<DataItem category="SAMPLE" id="Path_01_FeedRate" nativeUnits="MILLIMETER/SECOND" type="PATH_FEEDRATE" units="MILLIMETER/SECOND" subType="ACTUAL" name="Path FEED"/>
|
||||
<DataItem category="SAMPLE" id="Path_01_FeedOverr" nativeUnits="PERCENT" type="PATH_FEEDRATE" units="PERCENT" subType="OVERRIDE" name="Path FEED Override"/>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_Speed" nativeUnits="MILLIMETER/SECOND" type="PATH_FEEDRATE" units="MILLIMETER/SECOND" subType="ACTUAL" name="UnOp Speed"/>
|
||||
<DataItem category="SAMPLE" id="Path_01_SpeedOverr" nativeUnits="PERCENT" type="PATH_FEEDRATE" units="PERCENT" subType="OVERRIDE" name="Path SPEED Override"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_ToolId" name="TOOL ID" type="TOOL_ASSET_ID"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_NumCU" name="Num Cambi Utensile effettuati" type="MESSAGE" units="COUNT"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_Status" type="ACTUATOR_STATE"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_VitaRes" name="Vita Residua Tool" type="MESSAGE" units="COUNT"/>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_Load" name="Load sul PATH/UnOp" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_AccTime" type="ACCUMULATED_TIME"/>
|
||||
<!--<DataItem category="EVENT" id="cn2" name="block" type="BLOCK"/>-->
|
||||
<!-- aggiungere -->
|
||||
<DataItem category="SAMPLE" id="Path_01_RapidOverr" nativeUnits="PERCENT" type="PATH_FEEDRATE" units="PERCENT" subType="OVERRIDE" name="Path RAPID Override"/>
|
||||
<!--<DataItem category="EVENT" id="cn2" name="block" type="BLOCK"/>-->
|
||||
<DataItem category="CONDITION" id="Path_01_CNC" type="SYSTEM"/>
|
||||
<DataItem category="CONDITION" id="Path_01_PLC" type="LOGIC"/>
|
||||
</DataItems>
|
||||
</Path>
|
||||
<!-- più attuatori?!? -->
|
||||
<Actuator id="UniOp_01" name ="Unità Operatrice 01">
|
||||
<DataItems>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_Speed" nativeUnits="MILLIMETER/SECOND" type="PATH_FEEDRATE" units="MILLIMETER/SECOND" subType="ACTUAL" name="UnOp Speed"/>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_SpeedOverr" nativeUnits="PERCENT" type="PATH_FEEDRATE" units="PERCENT" subType="OVERRIDE" name="UnOp SPEED Override"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_ToolId" name="TOOL ID" type="TOOL_ASSET_ID"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_NumCU" name="Num Cambi Utensile effettuati" type="MESSAGE" units="COUNT"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_Status" type="ACTUATOR_STATE"/>
|
||||
<DataItem category="EVENT" id="UnOp_01_VitaRes" name="Vita Residua Tool" type="MESSAGE" units="COUNT"/>
|
||||
<DataItem category="SAMPLE" id="UnOp_01_Load" name="Load sul PATH/UnOp" nativeUnits="PERCENT" type="LOAD" units="PERCENT"/>
|
||||
<!-- cambiare in event... -->
|
||||
<DataItem category="SAMPLE" id="UnOp_01_AccTime" type="ACCUMULATED_TIME"/>
|
||||
</DataItems>
|
||||
</Actuator>
|
||||
</Components>
|
||||
</Controller>
|
||||
<Systems id="systems" name="systems">
|
||||
@@ -214,7 +269,7 @@
|
||||
<DataItem category="EVENT" id="p2" name="power" type="POWER_STATE"/>
|
||||
</DataItems>
|
||||
</Electric>
|
||||
<Hydraulic id="hsys" name="hydrolic">
|
||||
<Hydraulic id="hsys" name="hydraulic">
|
||||
<!--<DataItems>
|
||||
<DataItem category="CONDITION" id="hlow" type="LEVEL"/>
|
||||
<DataItem category="CONDITION" id="hpres" type="PRESSURE"/>
|
||||
@@ -277,8 +332,9 @@
|
||||
</Systems>
|
||||
<Sensor id="sens1" name="Sensorunit">
|
||||
<DataItems>
|
||||
<DataItem type="TEMPERATURE" id="Temp_01_Value" category="SAMPLE" name="Sonda Temperatura 1" units="DEGREE" />
|
||||
<DataItem type="TEMPERATURE" id="Temp_02_Value" category="SAMPLE" name="Sonda Temperatura 2" units="DEGREE"/>
|
||||
<!-- verificare di poterli spostare e siano 4, 1 x ogni asse lineare >>> SPOSTARE!!!!!! -->
|
||||
<!-- <DataItem type="TEMPERATURE" id="Temp_04_Value" category="SAMPLE" name="Sonda Temperatura 4" units="DEGREE"/>
|
||||
<DataItem type="TEMPERATURE" id="Temp_05_Value" category="SAMPLE" name="Sonda Temperatura 5" units="DEGREE"/> -->
|
||||
<DataItem type="PRESSURE" id="Press_01_Value" category="SAMPLE" name="Pressostato 1" units="PASCAL"/>
|
||||
</DataItems>
|
||||
</Sensor>
|
||||
|
||||
Binary file not shown.
@@ -14,6 +14,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||
..\AgentBin\simulator\CMS_DEMO.xml = ..\AgentBin\simulator\CMS_DEMO.xml
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CMSCncLib", "CMSCncLib\CMSCncLib.vbproj", "{2D769FFD-1122-4276-A115-29246E6D23C5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -32,6 +34,10 @@ Global
|
||||
{D8D08DBE-B511-4DE0-B5A9-563EBFC60C4F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8D08DBE-B511-4DE0-B5A9-563EBFC60C4F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8D08DBE-B511-4DE0-B5A9-563EBFC60C4F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2D769FFD-1122-4276-A115-29246E6D23C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2D769FFD-1122-4276-A115-29246E6D23C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2D769FFD-1122-4276-A115-29246E6D23C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2D769FFD-1122-4276-A115-29246E6D23C5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -3,11 +3,16 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using CMSCncLib.CNC;
|
||||
|
||||
namespace MTC_Sim
|
||||
{
|
||||
public class AdapterFanuc : AdapterGeneric
|
||||
{
|
||||
protected FANUC FANUC_ref;
|
||||
|
||||
protected StatusFlag CurrStatus;
|
||||
|
||||
/// <summary>
|
||||
/// estende l'init della classe base...
|
||||
/// </summary>
|
||||
@@ -15,7 +20,17 @@ namespace MTC_Sim
|
||||
/// <param name="adpConf"></param>
|
||||
public AdapterFanuc(CMS_MachineSim caller, AdapterConf adpConf) : base(caller, adpConf)
|
||||
{
|
||||
Runtime.CreateNC();
|
||||
|
||||
FANUC_ref = (FANUC)Runtime.NC;
|
||||
|
||||
string szStatusConnection = "";
|
||||
FANUC_ref.Connect(ref szStatusConnection);
|
||||
|
||||
//CMSCncLib.App.Runtime.CreateRuntime();
|
||||
|
||||
//Runtime.NC.Initialize();
|
||||
//Config.Settings.Settings.TypeNC = CNC.NcType.FANUC;
|
||||
}
|
||||
|
||||
public override void getCurrProgramData()
|
||||
@@ -23,5 +38,21 @@ namespace MTC_Sim
|
||||
// serve?!?
|
||||
base.getCurrProgramData();
|
||||
}
|
||||
|
||||
public override void getCurrMode()
|
||||
{
|
||||
base.getCurrMode();
|
||||
|
||||
byte[] status = new byte[8];
|
||||
|
||||
|
||||
// se non sono connesso esco
|
||||
if (!FANUC_ref.Connected) return;
|
||||
|
||||
// hard coded: leggo 8 word dalla memoria 3450--> 3457
|
||||
FANUC_ref.F_RW_Byte(R, FANUC.MemType.D, 3450, ref status);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -420,6 +420,10 @@ namespace MTC_Sim
|
||||
|
||||
public class AdapterGeneric
|
||||
{
|
||||
public bool R = false;
|
||||
public bool W = true;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// adapter globale
|
||||
/// </summary>
|
||||
@@ -441,6 +445,10 @@ namespace MTC_Sim
|
||||
/// Status flag
|
||||
/// </summary>
|
||||
public StatusFlag STATUS_FLAG = 0;
|
||||
/// <summary>
|
||||
/// Variabili stato macchina principali
|
||||
/// </summary>
|
||||
public StFlag8 ST_MACCH = 0;
|
||||
|
||||
|
||||
public List<string> codaM = new List<string>();
|
||||
|
||||
@@ -16,4 +16,18 @@
|
||||
|
||||
|
||||
STROBE: gestione full PLC --> ADP e ADP --> PLC (32 bit)
|
||||
STATUS: elenco di variabili semaforiche che indicano variazione status importanti (32 bit?) + status delle CLASSI di allarme (32 bit)
|
||||
STATUS: elenco di variabili semaforiche che indicano variazione status importanti (32 bit?) + status delle CLASSI di allarme (32 bit)
|
||||
|
||||
|
||||
|
||||
AREE PER STATUS
|
||||
- D3450 - bit 0: AUTO
|
||||
- D3450 - bit 1: EDIT
|
||||
- D3450 - bit 2: MDI
|
||||
- D3450 - bit 3: DNC
|
||||
|
||||
lettura da D3450 --> D3457
|
||||
|
||||
|
||||
ATTENZIONE: aggiungere pos memoria x status e strobe x path
|
||||
Aggiungere condition (1) x ogni path e x ogni asse
|
||||
|
||||
+38
-38
@@ -132,6 +132,9 @@
|
||||
this.lblCurrAdapt = new System.Windows.Forms.Label();
|
||||
this.tabCtrlMain = new System.Windows.Forms.TabControl();
|
||||
this.tpStatus = new System.Windows.Forms.TabPage();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.STATUS_FLAGS = new System.Windows.Forms.TextBox();
|
||||
this.label48 = new System.Windows.Forms.Label();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.dump = new System.Windows.Forms.Button();
|
||||
this.stop = new System.Windows.Forms.Button();
|
||||
@@ -195,9 +198,6 @@
|
||||
this.lblCodaM = new System.Windows.Forms.Label();
|
||||
this.addCodM = new System.Windows.Forms.TextBox();
|
||||
this.label20 = new System.Windows.Forms.Label();
|
||||
this.groupBox6 = new System.Windows.Forms.GroupBox();
|
||||
this.STATUS_FLAGS = new System.Windows.Forms.TextBox();
|
||||
this.label48 = new System.Windows.Forms.Label();
|
||||
this.groupBox4.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.PosAct)).BeginInit();
|
||||
this.groupBox3.SuspendLayout();
|
||||
@@ -209,6 +209,7 @@
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.tabCtrlMain.SuspendLayout();
|
||||
this.tpStatus.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.tbConf.SuspendLayout();
|
||||
this.tpSIM.SuspendLayout();
|
||||
@@ -219,7 +220,6 @@
|
||||
this.groupBox10.SuspendLayout();
|
||||
this.groupBox8.SuspendLayout();
|
||||
this.groupBox12.SuspendLayout();
|
||||
this.groupBox6.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// PlcErr_02
|
||||
@@ -972,7 +972,7 @@
|
||||
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.toolStripStatusLabel1,
|
||||
this.MainProgrBar});
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 725);
|
||||
this.statusStrip1.Location = new System.Drawing.Point(0, 719);
|
||||
this.statusStrip1.Name = "statusStrip1";
|
||||
this.statusStrip1.Size = new System.Drawing.Size(780, 22);
|
||||
this.statusStrip1.TabIndex = 59;
|
||||
@@ -1182,7 +1182,7 @@
|
||||
this.tabCtrlMain.Location = new System.Drawing.Point(0, 50);
|
||||
this.tabCtrlMain.Name = "tabCtrlMain";
|
||||
this.tabCtrlMain.SelectedIndex = 0;
|
||||
this.tabCtrlMain.Size = new System.Drawing.Size(780, 675);
|
||||
this.tabCtrlMain.Size = new System.Drawing.Size(780, 669);
|
||||
this.tabCtrlMain.TabIndex = 65;
|
||||
//
|
||||
// tpStatus
|
||||
@@ -1194,10 +1194,38 @@
|
||||
this.tpStatus.Location = new System.Drawing.Point(4, 22);
|
||||
this.tpStatus.Name = "tpStatus";
|
||||
this.tpStatus.Padding = new System.Windows.Forms.Padding(3);
|
||||
this.tpStatus.Size = new System.Drawing.Size(772, 649);
|
||||
this.tpStatus.Size = new System.Drawing.Size(772, 643);
|
||||
this.tpStatus.TabIndex = 0;
|
||||
this.tpStatus.Text = "STATUS";
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.STATUS_FLAGS);
|
||||
this.groupBox6.Controls.Add(this.label48);
|
||||
this.groupBox6.Location = new System.Drawing.Point(1, 207);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(773, 75);
|
||||
this.groupBox6.TabIndex = 58;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Status & Alarms";
|
||||
//
|
||||
// STATUS_FLAGS
|
||||
//
|
||||
this.STATUS_FLAGS.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.STATUS_FLAGS.Location = new System.Drawing.Point(85, 11);
|
||||
this.STATUS_FLAGS.Name = "STATUS_FLAGS";
|
||||
this.STATUS_FLAGS.Size = new System.Drawing.Size(363, 29);
|
||||
this.STATUS_FLAGS.TabIndex = 53;
|
||||
//
|
||||
// label48
|
||||
//
|
||||
this.label48.AutoSize = true;
|
||||
this.label48.Location = new System.Drawing.Point(15, 19);
|
||||
this.label48.Name = "label48";
|
||||
this.label48.Size = new System.Drawing.Size(32, 13);
|
||||
this.label48.TabIndex = 52;
|
||||
this.label48.Text = "Flags";
|
||||
//
|
||||
// groupBox1
|
||||
//
|
||||
this.groupBox1.Controls.Add(this.dump);
|
||||
@@ -1835,39 +1863,11 @@
|
||||
this.label20.TabIndex = 52;
|
||||
this.label20.Text = "AddM";
|
||||
//
|
||||
// groupBox6
|
||||
//
|
||||
this.groupBox6.Controls.Add(this.STATUS_FLAGS);
|
||||
this.groupBox6.Controls.Add(this.label48);
|
||||
this.groupBox6.Location = new System.Drawing.Point(1, 207);
|
||||
this.groupBox6.Name = "groupBox6";
|
||||
this.groupBox6.Size = new System.Drawing.Size(773, 75);
|
||||
this.groupBox6.TabIndex = 58;
|
||||
this.groupBox6.TabStop = false;
|
||||
this.groupBox6.Text = "Status & Alarms";
|
||||
//
|
||||
// STATUS_FLAGS
|
||||
//
|
||||
this.STATUS_FLAGS.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.STATUS_FLAGS.Location = new System.Drawing.Point(85, 11);
|
||||
this.STATUS_FLAGS.Name = "STATUS_FLAGS";
|
||||
this.STATUS_FLAGS.Size = new System.Drawing.Size(363, 29);
|
||||
this.STATUS_FLAGS.TabIndex = 53;
|
||||
//
|
||||
// label48
|
||||
//
|
||||
this.label48.AutoSize = true;
|
||||
this.label48.Location = new System.Drawing.Point(15, 19);
|
||||
this.label48.Name = "label48";
|
||||
this.label48.Size = new System.Drawing.Size(32, 13);
|
||||
this.label48.TabIndex = 52;
|
||||
this.label48.Text = "Flags";
|
||||
//
|
||||
// CMS_MachineSim
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(780, 747);
|
||||
this.ClientSize = new System.Drawing.Size(780, 741);
|
||||
this.Controls.Add(this.tabCtrlMain);
|
||||
this.Controls.Add(this.lblCurrAdapt);
|
||||
this.Controls.Add(this.statusStrip1);
|
||||
@@ -1895,6 +1895,8 @@
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.tabCtrlMain.ResumeLayout(false);
|
||||
this.tpStatus.ResumeLayout(false);
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.groupBox1.ResumeLayout(false);
|
||||
this.groupBox1.PerformLayout();
|
||||
this.tbConf.ResumeLayout(false);
|
||||
@@ -1913,8 +1915,6 @@
|
||||
this.groupBox8.PerformLayout();
|
||||
this.groupBox12.ResumeLayout(false);
|
||||
this.groupBox12.PerformLayout();
|
||||
this.groupBox6.ResumeLayout(false);
|
||||
this.groupBox6.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
|
||||
@@ -28,6 +28,9 @@ namespace MTC_Sim
|
||||
protected int normCount;
|
||||
protected int slowCount;
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Oggetto x gestione dell'adapter GENERICO (x poter usare metodi di ognuno...)
|
||||
/// </summary>
|
||||
|
||||
@@ -103,8 +103,13 @@
|
||||
<Project>{d8d08dbe-b511-4de0-b5a9-563ebfc60c4f}</Project>
|
||||
<Name>DotNetAdapterSDK</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\CMSCncLib\CMSCncLib.vbproj">
|
||||
<Project>{2d769ffd-1122-4276-a115-29246e6d23c5}</Project>
|
||||
<Name>CMSCncLib</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AdapterConf\CMS.xml" />
|
||||
<Content Include="AdapterConf\Demo.xml" />
|
||||
<Content Include="AdapterConf\Devices.xml" />
|
||||
<Content Include="AlarmList.txt">
|
||||
|
||||
@@ -293,9 +293,23 @@ namespace MTC_Sim
|
||||
SP31 = 1 << 31
|
||||
}
|
||||
/// <summary>
|
||||
/// StFlag8: set di 8 bit (1 word) contente semaforo di variabili
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum StFlag8 : int
|
||||
{
|
||||
NONE = 0,
|
||||
B0 = 1 << 0,
|
||||
B1 = 1 << 1,
|
||||
B2 = 1 << 2,
|
||||
B3 = 1 << 3,
|
||||
B4 = 1 << 4,
|
||||
B5 = 1 << 5,
|
||||
B6 = 1 << 6,
|
||||
B7 = 1 << 7
|
||||
}
|
||||
/// <summary>
|
||||
/// StatusFlag: contiene il set di semafori/flag x status + allarmi (x classi)
|
||||
///
|
||||
/// rif: http://stackoverflow.com/questions/17209054/parse-bits-in-a-byte-to-enum
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum StatusFlag : int
|
||||
|
||||
Reference in New Issue
Block a user