Skip to content

Commit

Permalink
Merge pull request #399 from ix-ax/398-components_cognex_hardware_con…
Browse files Browse the repository at this point in the history
…figuration_using_hwc

components cognex hardware configuration using hwc
  • Loading branch information
TomKovac authored May 16, 2024
2 parents b5818b3 + e5d880d commit 753cda7
Show file tree
Hide file tree
Showing 21 changed files with 5,375 additions and 108 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
CONFIGURATION HardwareIDs
VAR_GLOBAL CONSTANT
PROFINET_IO_System_HwID : UINT := UINT#256;
is7600_HwID : UINT := UINT#259;
is7600_Acquisition_Control_Acquisition_Control_HwID : UINT := UINT#269;
is7600_Acquisition_Status_Acquisition_Status_HwID : UINT := UINT#265;
is7600_Command_Control_Command_Control_HwID : UINT := UINT#266;
is7600_Inspection_Control_Inspection_Control_HwID : UINT := UINT#268;
is7600_Inspection_Status_Inspection_Status_HwID : UINT := UINT#264;
is7600_Rack_HwID : UINT := UINT#260;
is7600_Result_Data_64_bytes_Results___64_bytes_HwID : UINT := UINT#262;
is7600_SoftEvent_Control_SoftEvent_Control_HwID : UINT := UINT#267;
is7600_User_Data_64_bytes_User_Data___64_bytes_HwID : UINT := UINT#263;
is7600_is7600_HwID : UINT := UINT#261;
is7600_is7600_In_Sight_IS79XX_IS75XX_CC_B_HwID : UINT := UINT#270;
is7600_is7600_profinet_HwID : UINT := UINT#257;
is7600_is7600_profinet_Port_1_HwID : UINT := UINT#258;
plc_line_HwID : UINT := UINT#32;
plc_line_Rail_0_HwID : UINT := UINT#284;
plc_line_plc_line_HwID : UINT := UINT#48;
plc_line_plc_line__plc_line_HwID : UINT := UINT#49;
plc_line_plc_line_CPU_display_1_HwID : UINT := UINT#54;
plc_line_plc_line_CPU_exec_unit_1_HwID : UINT := UINT#52;
plc_line_plc_line_Card_reader_writer_1_HwID : UINT := UINT#51;
plc_line_plc_line_DP_interface_1_HwID : UINT := UINT#60;
plc_line_plc_line_LicenseManager_1_HwID : UINT := UINT#42;
plc_line_plc_line_OPC_UA_1_HwID : UINT := UINT#117;
plc_line_plc_line_PROFINET_interface_2_HwID : UINT := UINT#72;
plc_line_plc_line_PROFINET_interface_2_Port_1_HwID : UINT := UINT#73;
plc_line_plc_line_Virtual_communication_interface_HwID : UINT := UINT#135;
plc_line_plc_line_plc_line_HwID : UINT := UINT#50;
plc_line_plc_line_profinet_x1_HwID : UINT := UINT#64;
plc_line_plc_line_profinet_x1_Port1_HwID : UINT := UINT#65;
plc_line_plc_line_profinet_x1_Port2_HwID : UINT := UINT#66;
reader_st1_HwID : UINT := UINT#273;
reader_st1_Acquisition_Control_Acquisition_Control_HwID : UINT := UINT#282;
reader_st1_Acquisition_Status_Acquisition_Status_HwID : UINT := UINT#281;
reader_st1_Rack_HwID : UINT := UINT#274;
reader_st1_Result_Data_128_bytes_Result_Data___128_bytes_HwID : UINT := UINT#276;
reader_st1_Results_Control_Results_Control_HwID : UINT := UINT#280;
reader_st1_Results_Status_Results_Status_HwID : UINT := UINT#279;
reader_st1_Soft_Event_Control_Soft_Event_Control_HwID : UINT := UINT#278;
reader_st1_User_Data_128_bytes_User_Data___128_bytes_HwID : UINT := UINT#277;
reader_st1_reader_st1_HwID : UINT := UINT#275;
reader_st1_reader_st1_DataMan_280_CC_B_HwID : UINT := UINT#283;
reader_st1_reader_st1_profinet_HwID : UINT := UINT#271;
reader_st1_reader_st1_profinet_Port_1_HwID : UINT := UINT#272;
reader_st2_HwID : UINT := UINT#287;
reader_st2_Acquisition_Control_Acquisition_Control_HwID : UINT := UINT#296;
reader_st2_Acquisition_Status_Acquisition_Status_HwID : UINT := UINT#295;
reader_st2_Rack_HwID : UINT := UINT#288;
reader_st2_Result_Data_64_bytes_Result_Data___64_bytes_HwID : UINT := UINT#290;
reader_st2_Results_Control_Results_Control_HwID : UINT := UINT#294;
reader_st2_Results_Status_Results_Status_HwID : UINT := UINT#293;
reader_st2_Soft_Event_Control_Soft_Event_Control_HwID : UINT := UINT#292;
reader_st2_User_Data_64_bytes_User_Data___64_bytes_HwID : UINT := UINT#291;
reader_st2_reader_st2_HwID : UINT := UINT#289;
reader_st2_reader_st2_DataMan_300_HwID : UINT := UINT#297;
reader_st2_reader_st2_profinet_HwID : UINT := UINT#285;
reader_st2_reader_st2_profinet_Port_1_HwID : UINT := UINT#286;

END_VAR
END_CONFIGURATION
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
CONFIGURATION IoAddresses
VAR_GLOBAL
is7600_Acquisition_Control_OutputAddress AT %QB68: BYTE;
is7600_Acquisition_Status_InputAddress_0 AT %IB72: BYTE;
is7600_Acquisition_Status_InputAddress_1 AT %IB73: BYTE;
is7600_Acquisition_Status_InputAddress_2 AT %IB74: BYTE;
is7600_Command_Control_InputAddress AT %IW75: WORD;
is7600_Command_Control_OutputAddress AT %QW64: WORD;
is7600_Inspection_Control_OutputAddress AT %QB67: BYTE;
is7600_Inspection_Status_InputAddress AT %ID68: DWORD;
is7600_Result_Data_64_bytes_InputAddress_0 AT %ID0: DWORD;
is7600_Result_Data_64_bytes_InputAddress_1 AT %ID4: DWORD;
is7600_Result_Data_64_bytes_InputAddress_2 AT %ID8: DWORD;
is7600_Result_Data_64_bytes_InputAddress_3 AT %ID12: DWORD;
is7600_Result_Data_64_bytes_InputAddress_4 AT %ID16: DWORD;
is7600_Result_Data_64_bytes_InputAddress_5 AT %ID20: DWORD;
is7600_Result_Data_64_bytes_InputAddress_6 AT %ID24: DWORD;
is7600_Result_Data_64_bytes_InputAddress_7 AT %ID28: DWORD;
is7600_Result_Data_64_bytes_InputAddress_8 AT %ID32: DWORD;
is7600_Result_Data_64_bytes_InputAddress_9 AT %ID36: DWORD;
is7600_Result_Data_64_bytes_InputAddress_10 AT %ID40: DWORD;
is7600_Result_Data_64_bytes_InputAddress_11 AT %ID44: DWORD;
is7600_Result_Data_64_bytes_InputAddress_12 AT %ID48: DWORD;
is7600_Result_Data_64_bytes_InputAddress_13 AT %ID52: DWORD;
is7600_Result_Data_64_bytes_InputAddress_14 AT %ID56: DWORD;
is7600_Result_Data_64_bytes_InputAddress_15 AT %ID60: DWORD;
is7600_Result_Data_64_bytes_InputAddress_16 AT %ID64: DWORD;
is7600_SoftEvent_Control_InputAddress AT %IB77: BYTE;
is7600_SoftEvent_Control_OutputAddress AT %QB66: BYTE;
is7600_User_Data_64_bytes_OutputAddress_0 AT %QL0: LWORD;
is7600_User_Data_64_bytes_OutputAddress_1 AT %QL8: LWORD;
is7600_User_Data_64_bytes_OutputAddress_2 AT %QL16: LWORD;
is7600_User_Data_64_bytes_OutputAddress_3 AT %QL24: LWORD;
is7600_User_Data_64_bytes_OutputAddress_4 AT %QL32: LWORD;
is7600_User_Data_64_bytes_OutputAddress_5 AT %QL40: LWORD;
is7600_User_Data_64_bytes_OutputAddress_6 AT %QL48: LWORD;
is7600_User_Data_64_bytes_OutputAddress_7 AT %QL56: LWORD;
reader_st1_Acquisition_Control_OutputAddress AT %QB203: BYTE;
reader_st1_Acquisition_Status_InputAddress_0 AT %IB216: BYTE;
reader_st1_Acquisition_Status_InputAddress_1 AT %IB217: BYTE;
reader_st1_Acquisition_Status_InputAddress_2 AT %IB218: BYTE;
reader_st1_Result_Data_128_bytes_InputAddress_0 AT %IL78: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_1 AT %IL86: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_2 AT %IL94: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_3 AT %IL102: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_4 AT %IL110: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_5 AT %IL118: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_6 AT %IL126: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_7 AT %IL134: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_8 AT %IL142: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_9 AT %IL150: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_10 AT %IL158: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_11 AT %IL166: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_12 AT %IL174: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_13 AT %IL182: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_14 AT %IL190: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_15 AT %IL198: LWORD;
reader_st1_Result_Data_128_bytes_InputAddress_16 AT %IL206: LWORD;
reader_st1_Results_Control_OutputAddress AT %QB202: BYTE;
reader_st1_Results_Status_InputAddress AT %IB215: BYTE;
reader_st1_Soft_Event_Control_InputAddress AT %IB214: BYTE;
reader_st1_Soft_Event_Control_OutputAddress AT %QB201: BYTE;
reader_st1_User_Data_128_bytes_OutputAddress_0 AT %QD69: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_1 AT %QD73: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_2 AT %QD77: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_3 AT %QD81: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_4 AT %QD85: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_5 AT %QD89: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_6 AT %QD93: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_7 AT %QD97: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_8 AT %QD101: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_9 AT %QD105: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_10 AT %QD109: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_11 AT %QD113: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_12 AT %QD117: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_13 AT %QD121: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_14 AT %QD125: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_15 AT %QD129: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_16 AT %QD133: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_17 AT %QD137: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_18 AT %QD141: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_19 AT %QD145: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_20 AT %QD149: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_21 AT %QD153: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_22 AT %QD157: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_23 AT %QD161: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_24 AT %QD165: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_25 AT %QD169: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_26 AT %QD173: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_27 AT %QD177: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_28 AT %QD181: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_29 AT %QD185: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_30 AT %QD189: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_31 AT %QD193: DWORD;
reader_st1_User_Data_128_bytes_OutputAddress_32 AT %QD197: DWORD;
reader_st2_Acquisition_Control_OutputAddress AT %QB274: BYTE;
reader_st2_Acquisition_Status_InputAddress_0 AT %IB293: BYTE;
reader_st2_Acquisition_Status_InputAddress_1 AT %IB294: BYTE;
reader_st2_Acquisition_Status_InputAddress_2 AT %IB295: BYTE;
reader_st2_Result_Data_64_bytes_InputAddress_0 AT %IL219: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_1 AT %IL227: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_2 AT %IL235: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_3 AT %IL243: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_4 AT %IL251: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_5 AT %IL259: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_6 AT %IL267: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_7 AT %IL275: LWORD;
reader_st2_Result_Data_64_bytes_InputAddress_8 AT %IL283: LWORD;
reader_st2_Results_Control_OutputAddress AT %QB273: BYTE;
reader_st2_Results_Status_InputAddress AT %IB292: BYTE;
reader_st2_Soft_Event_Control_InputAddress AT %IB291: BYTE;
reader_st2_Soft_Event_Control_OutputAddress AT %QB272: BYTE;
reader_st2_User_Data_64_bytes_OutputAddress_0 AT %QD204: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_1 AT %QD208: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_2 AT %QD212: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_3 AT %QD216: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_4 AT %QD220: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_5 AT %QD224: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_6 AT %QD228: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_7 AT %QD232: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_8 AT %QD236: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_9 AT %QD240: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_10 AT %QD244: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_11 AT %QD248: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_12 AT %QD252: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_13 AT %QD256: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_14 AT %QD260: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_15 AT %QD264: DWORD;
reader_st2_User_Data_64_bytes_OutputAddress_16 AT %QD268: DWORD;

END_VAR
END_CONFIGURATION
23 changes: 9 additions & 14 deletions src/components.cognex.vision/app/apax.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,16 @@ scripts:
delta:
- START=$(date +%s)
- apax build --ignore-scripts
- apax sld load --accept-security-disclaimer -t $AXTARGET -i
$AXTARGETPLATFORMINPUT --mode delta
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in
:" $(expr $(date +%s) - $START) "s"
- apax sld load --accept-security-disclaimer -t $AXTARGET -i $AXTARGETPLATFORMINPUT --mode delta
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in :" $(expr $(date +%s) - $START) "s"
download:
- START=$(date +%s)
- apax build --ignore-scripts
- dotnet ixc
- apax download_only
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in
:" $(expr $(date +%s) - $START) "s"
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in :" $(expr $(date +%s) - $START) "s"
download_only:
- apax sld load --accept-security-disclaimer -t $AXTARGET -i
$AXTARGETPLATFORMINPUT -r
- apax sld load --accept-security-disclaimer -t $AXTARGET -i $AXTARGETPLATFORMINPUT -r
check+download: |
if [ $AXTARGET ]; then
if [ $AXTARGETPLATFORMINPUT ]; then
Expand All @@ -51,8 +47,7 @@ scripts:
echo "Environment variable AXTARGET not defined!!!"
fi
watch:
- dotnet watch --project
..\\app\\ix-blazor\\AXOpen.Components.Cognex.Vision.blazorapp.csproj
- dotnet watch --project ..\\app\\ix-blazor\\AXOpen.Components.Cognex.Vision.blazorapp.csproj
fr:
- ..\\..\\integrations\\scripts\\StartPlcSimAdvCli.exe
- apax rr
Expand All @@ -64,8 +59,7 @@ scripts:
- apax clean
- apax install
- apax download
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in
:" $(expr $(date +%s) - $START) "s"
- echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in :" $(expr $(date +%s) - $START) "s"
rrw:
- apax rr
- apax watch
Expand All @@ -75,7 +69,7 @@ scripts:
- apax download_only
dd:
- apax delta
# <==== Obsolete scripts, could be removed at some point
# <==== Obsolete scripts, could be removed at some point
plcsim: ..\\..\\integrations\\scripts\\StartPlcSimAdvCli.exe #start PLCSIM

r: | #restart PLC
Expand Down Expand Up @@ -258,6 +252,8 @@ scripts:
START=$(date +%s)
apax ci
apax clean_plc
apax gsd
apax hwl
apax ssc
apax hwfd
apax swfd
Expand All @@ -271,4 +267,3 @@ scripts:
echo $(date +%D)"-"$(date +%H)":"$(date +%M)":"$(date +%S) " - Finished in :" $(expr $(date +%s) - $START) "s"
installStrategy: strict
apaxVersion: 3.1.1

Loading

0 comments on commit 753cda7

Please sign in to comment.