Skip to content

Commit

Permalink
solve errors in Start method (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDKo authored Jan 26, 2024
1 parent 83d8585 commit 7408463
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 43 deletions.
28 changes: 14 additions & 14 deletions apax-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,20 @@
"@ax/system-datetime": "6.0.94"
}
},
"@ax/system-math": {
"name": "@ax/system-math",
"version": "6.0.94",
"integrity": "sha512-lmkqZnJRT6zjAaVEKgWDwB1J7st+rgj/lfJc+6PZ/zgiRxoJ/s7BSTl/6YQ6k12RskKrA4E5VvLiqJhaNd3ssw==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/system-math/-/system-math-6.0.94.tgz",
"dependencies": {}
},
"@ax/system-datetime": {
"name": "@ax/system-datetime",
"version": "6.0.94",
"integrity": "sha512-8xn57nA5NfZ6ImTxmFGvzFp7wLL38JdUgjsuEg+xbzs29e8ftvbTCNqaWMVdX05N4QNAqohq2BlEkIyFtDH8Qg==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/system-datetime/-/system-datetime-6.0.94.tgz",
"dependencies": {}
},
"@ax/axunitst-library": {
"name": "@ax/axunitst-library",
"version": "4.1.8",
Expand Down Expand Up @@ -569,20 +583,6 @@
],
"dependencies": {}
},
"@ax/system-math": {
"name": "@ax/system-math",
"version": "6.0.94",
"integrity": "sha512-lmkqZnJRT6zjAaVEKgWDwB1J7st+rgj/lfJc+6PZ/zgiRxoJ/s7BSTl/6YQ6k12RskKrA4E5VvLiqJhaNd3ssw==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/system-math/-/system-math-6.0.94.tgz",
"dependencies": {}
},
"@ax/system-datetime": {
"name": "@ax/system-datetime",
"version": "6.0.94",
"integrity": "sha512-8xn57nA5NfZ6ImTxmFGvzFp7wLL38JdUgjsuEg+xbzs29e8ftvbTCNqaWMVdX05N4QNAqohq2BlEkIyFtDH8Qg==",
"resolved": "https://registry.simatic-ax.siemens.io/@ax/system-datetime/-/system-datetime-6.0.94.tgz",
"dependencies": {}
},
"@ax/axunitst-runner-linux-x64": {
"name": "@ax/axunitst-runner-linux-x64",
"version": "4.1.8",
Expand Down
3 changes: 2 additions & 1 deletion src/Blocks/Drives/classReadDriveParams.st
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ NAMESPACE Simatic.Ax.LAcycCom

// starts functionality
IF not ((statFBState = LAcycCom_ReadWriteStatus#FB_IDLE OR
statFBState = LAcycCom_ReadWriteStatus#FB_DONE) AND
statFBState = LAcycCom_ReadWriteStatus#FB_DONE or
statFBState = LAcycCom_ReadWriteStatus#FB_ERROR) AND
statrequestBuffer <> NULL) THEN
Start := False;
ELSE
Expand Down
3 changes: 2 additions & 1 deletion src/Blocks/Drives/classReadDriveSingleParams.st
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ NAMESPACE Simatic.Ax.LAcycCom

// starts functionality
IF not ((statFBState = LAcycCom_ReadWriteStatus#FB_IDLE OR
statFBState = LAcycCom_ReadWriteStatus#FB_DONE) AND
statFBState = LAcycCom_ReadWriteStatus#FB_DONE or
statFBState = LAcycCom_ReadWriteStatus#FB_ERROR) AND
statrequestBuffer <> NULL) THEN
Start := False;
ELSE
Expand Down
3 changes: 2 additions & 1 deletion src/Blocks/Drives/classWriteDriveParams.st
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ NAMESPACE Simatic.Ax.LAcycCom

// starts functionality
IF not ((statFBState = LAcycCom_ReadWriteStatus#FB_IDLE OR
statFBState = LAcycCom_ReadWriteStatus#FB_DONE) AND
statFBState = LAcycCom_ReadWriteStatus#FB_DONE or
statFBState = LAcycCom_ReadWriteStatus#FB_ERROR) AND
statrequestBuffer <> NULL) THEN
Start := False;
ELSE
Expand Down
3 changes: 2 additions & 1 deletion src/Blocks/Drives/classWriteDriveSingleParams.st
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,8 @@ NAMESPACE Simatic.Ax.LAcycCom

// starts functionality
IF not ((statFBState = LAcycCom_ReadWriteStatus#FB_IDLE OR
statFBState = LAcycCom_ReadWriteStatus#FB_DONE) AND
statFBState = LAcycCom_ReadWriteStatus#FB_DONE or
statFBState = LAcycCom_ReadWriteStatus#FB_ERROR) AND
statrequestBuffer <> NULL) THEN
Start := False;
ELSE
Expand Down
25 changes: 0 additions & 25 deletions src/Types/DriveTypes.st
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,7 @@ NAMESPACE Simatic.Ax.LAcycCom
END_STRUCT;

END_TYPE
(*
TYPE LAcycCom_typeDriveDiagnostics

: STRUCT
status : Word := word#16#0000; // Status identifier when error occurred
subfunctionStatus : Word := word#16#0000; // Block status or error information
stateNumber : SInt := sint#0; // State of the FB when error occurred
driveObjectId : USInt := usint#0; // Identification number of the drive object
hardwareId : HW_IO := HW_IO#default; // Hardware identifier of the hardware module
parameterCount : Int := 0; // Total amount of parameters
firstParameterError : Int := -1; // Number of parameter at which the error occurred (-1: no parameter with error)
errorValue : Byte := byte#2#11111111; // Error number (16#FF: no error; else: see error list)
END_STRUCT;
END_TYPE
*)

TYPE LAcycCom_ooptypeDriveDiagnostics

Expand All @@ -42,15 +28,4 @@ NAMESPACE Simatic.Ax.LAcycCom

END_TYPE

(*
TYPE LAcycCom_typeDriveMessages
: STRUCT
code : Array[0..typeconstantsint#LACYCCOM_MESSAGES_UPPER_LIM] of UInt;
info : Array[0..typeconstantsint#LACYCCOM_MESSAGES_UPPER_LIM] of UDInt;
comeDateAndTime : Array[0..typeconstantsint#LACYCCOM_MESSAGES_UPPER_LIM] of LDATE_AND_TIME;
Mtype : Array[0..typeconstantsint#LACYCCOM_MESSAGES_UPPER_LIM] of SInt;
END_STRUCT;

END_TYPE
*)
END_NAMESPACE

0 comments on commit 7408463

Please sign in to comment.