-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the template to support direct access to hardware addresses (#36)
* Create draft PR for #35 * wip * modified script copy_io_addresses to handle with empty hardware configuration * removed Inputs Outputs * Create-Unit script modified * modified unit template * modified UnitContainer in unit template * wip * var external added into components update method * IP modified * modified Inputs/Outputs/HwIdentifier location --------- Co-authored-by: TK <61820360+TomKovac@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
46 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,9 @@ | ||
NAMESPACE axosimple | ||
NAMESPACE axosimple | ||
TYPE | ||
{S7.extern=ReadWrite} | ||
{#ix-attr:[Container(Layout.Wrap)]} | ||
Inputs : STRUCT | ||
|
||
P0 : ARRAY[0..7] OF BOOL; | ||
P1 : ARRAY[0..7] OF BOOL; | ||
|
||
A0: ARRAY[0..7] OF DINT; | ||
A1 : ARRAY[0..7] OF DINT; | ||
|
||
D0 : ARRAY[0..7] OF BOOL; | ||
D1 : ARRAY[0..7] OF BOOL; | ||
|
||
|
||
// Reader_1_Acquisition_Status_1 : ARRAY[0..2] OF BYTE; | ||
// Reader_1_Results_Status_1 : BYTE; | ||
// Reader_1_Soft_Event_Control_1 : BYTE; | ||
// Reader_1_Result_Data_128_bytes_1 : ARRAY[0..135] OF BYTE; | ||
|
||
// Reader_2_Acquisition_Status_1 : ARRAY[0..2] OF BYTE; | ||
// Reader_2_Results_Status_1 : BYTE; | ||
// Reader_2_Soft_Event_Control_1 : BYTE; | ||
// Reader_2_Result_Data_128_bytes_1 : ARRAY[0..135] OF BYTE; | ||
|
||
// Camera_1_Acquisition_Status_1 : ARRAY[0..2] OF BYTE; | ||
// Camera_1_Inspection_Status_1 : DWORD; | ||
// Camera_1_Command_Control_1 : WORD; | ||
// Camera_1_SoftEvent_Control_1 : BYTE; | ||
// Camera_1_Results_64_bytes_1 : ARRAY[0..67] OF BYTE; | ||
|
||
// Camera_2_Acquisition_Status_1 : ARRAY[0..2] OF BYTE; | ||
// Camera_2_Inspection_Status_1 : DWORD; | ||
// Camera_2_Command_Control_1 : WORD; | ||
// Camera_2_SoftEvent_Control_1 : BYTE; | ||
// Camera_2_Results_64_bytes_1 : ARRAY[0..67] OF BYTE; | ||
|
||
|
||
noInputsFoundInTheHwConfig AT %B0: BYTE; | ||
END_STRUCT; | ||
END_TYPE | ||
END_TYPE | ||
END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,9 @@ | ||
NAMESPACE axosimple | ||
NAMESPACE axosimple | ||
TYPE | ||
{S7.extern=ReadWrite} | ||
{#ix-attr:[Container(Layout.Wrap)]} | ||
Outputs : STRUCT | ||
P0 : ARRAY[0..7] OF BOOL; | ||
P1 : ARRAY[0..7] OF BOOL; | ||
|
||
A0: ARRAY[0..7] OF DINT; | ||
A1 : ARRAY[0..7] OF DINT; | ||
|
||
D0 : ARRAY[0..7] OF BOOL; | ||
D1 : ARRAY[0..7] OF BOOL; | ||
|
||
// Reader_1_Acquisition_Control_1 : BYTE; | ||
// Reader_1_Results_Control_1 : BYTE; | ||
// Reader_1_Soft_Event_Control_1 : BYTE; | ||
// Reader_1_User_Data_128_bytes_1 : ARRAY[0..131] OF BYTE; | ||
|
||
// Reader_2_Acquisition_Control_1 : BYTE; | ||
// Reader_2_Results_Control_1 : BYTE; | ||
// Reader_2_Soft_Event_Control_1 : BYTE; | ||
// Reader_2_User_Data_128_bytes_1 : ARRAY[0..131] OF BYTE; | ||
|
||
// Camera_1_Acquisition_Control_1 : BYTE; | ||
// Camera_1_Inspection_Control_1 : BYTE; | ||
// Camera_1_Command_Control_1 : WORD; | ||
// Camera_1_SoftEvent_Control_1 : BYTE; | ||
// Camera_1_User_Data_64_bytes_1 : ARRAY[0..63] OF BYTE; | ||
|
||
// Camera_2_Acquisition_Control_1 : BYTE; | ||
// Camera_2_Inspection_Control_1 : BYTE; | ||
// Camera_2_Command_Control_1 : WORD; | ||
// Camera_2_SoftEvent_Control_1 : BYTE; | ||
// Camera_2_User_Data_64_bytes_1 : ARRAY[0..63] OF BYTE; | ||
|
||
|
||
END_STRUCT; | ||
{S7.extern=ReadWrite} | ||
{#ix-attr:[Container(Layout.Wrap)]} | ||
Outputs : STRUCT | ||
noOutputsFoundInTheHwConfig AT %B0: BYTE; | ||
END_STRUCT; | ||
END_TYPE | ||
END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters