From 4ede3c63889085dfdd7c34a2f999601a4735701b Mon Sep 17 00:00:00 2001 From: sjuergen Date: Wed, 22 Jul 2026 17:05:35 +0200 Subject: [PATCH] chore: use iecst as code type Co-authored-by: Copilot --- docs/ArrayToString.md | 4 ++-- docs/CountDigits.md | 4 ++-- docs/HexToString.md | 4 ++-- docs/IntToString.md | 2 +- docs/StringToAnyInt.md | 4 ++-- docs/StringToArrayOfCharCount.md | 4 ++-- docs/StringToArrayOfLint.md | 4 ++-- docs/StringToBool.md | 4 ++-- docs/StringToHex.md | 4 ++-- docs/TRUNC.md | 4 ++-- docs/Times.md | 2 +- docs/ToInt.md | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/docs/ArrayToString.md b/docs/ArrayToString.md index 4a03c83..488f5be 100644 --- a/docs/ArrayToString.md +++ b/docs/ArrayToString.md @@ -10,7 +10,7 @@ Provides overloads that convert a `CHAR` array, or a selected range within it, t ## Signatures -```st +```iecst FUNCTION ToString : STRING VAR_INPUT arr : ARRAY[*] OF CHAR; @@ -49,7 +49,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR chars : ARRAY[0..4] OF CHAR := ['H', 'e', 'l', 'l', 'o']; fullText : STRING; diff --git a/docs/CountDigits.md b/docs/CountDigits.md index 726d815..c20726c 100644 --- a/docs/CountDigits.md +++ b/docs/CountDigits.md @@ -10,7 +10,7 @@ Provides overloads that count the number of decimal digits in signed and unsigne ## Signatures -```st +```iecst FUNCTION CountDigits : INT VAR_INPUT value : LINT; @@ -39,7 +39,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR signedDigits : INT; unsignedDigits : INT; diff --git a/docs/HexToString.md b/docs/HexToString.md index 232c24f..319768e 100644 --- a/docs/HexToString.md +++ b/docs/HexToString.md @@ -10,7 +10,7 @@ Provides hexadecimal string conversion helpers for byte values. ## Signatures -```st +```iecst FUNCTION PUBLIC ByteToString : STRING VAR_INPUT b : BYTE; @@ -33,7 +33,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR hexValue : STRING; END_VAR diff --git a/docs/IntToString.md b/docs/IntToString.md index 9638b36..dd5917f 100644 --- a/docs/IntToString.md +++ b/docs/IntToString.md @@ -40,7 +40,7 @@ Provides overloaded `ToString` functions for signed and unsigned integer types. ## Examples -```st +```iecst VAR sintText : STRING[4]; dintText : STRING[11]; diff --git a/docs/StringToAnyInt.md b/docs/StringToAnyInt.md index e83d035..8074d8d 100644 --- a/docs/StringToAnyInt.md +++ b/docs/StringToAnyInt.md @@ -10,7 +10,7 @@ Provides string-to-integer parsing helpers for signed and unsigned 64-bit intege ## Signatures -```st +```iecst FUNCTION StringToAnyInt : BOOL VAR_INPUT str : STRING; @@ -42,7 +42,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR ok : BOOL; parsedValue : LINT; diff --git a/docs/StringToArrayOfCharCount.md b/docs/StringToArrayOfCharCount.md index ff6b4e5..78a9a04 100644 --- a/docs/StringToArrayOfCharCount.md +++ b/docs/StringToArrayOfCharCount.md @@ -10,7 +10,7 @@ Converts a `STRING` into an array of `CHAR` values and returns the number of cop ## Signature -```st +```iecst FUNCTION OfCharCount : DINT VAR_INPUT str : STRING; @@ -37,7 +37,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR chars : ARRAY[0..9] OF CHAR; copied : DINT; diff --git a/docs/StringToArrayOfLint.md b/docs/StringToArrayOfLint.md index e5e34a1..7bead59 100644 --- a/docs/StringToArrayOfLint.md +++ b/docs/StringToArrayOfLint.md @@ -10,7 +10,7 @@ Parses a string representation of an integer array into a `LINT` array. ## Signatures -```st +```iecst FUNCTION GetArrayBounds VAR_INPUT str : STRING; @@ -36,7 +36,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR lowerBound : INT; upperBound : INT; diff --git a/docs/StringToBool.md b/docs/StringToBool.md index 0ca33f2..219e5d0 100644 --- a/docs/StringToBool.md +++ b/docs/StringToBool.md @@ -10,7 +10,7 @@ Converts the strings `TRUE` and `FALSE` to a boolean value. ## Signature -```st +```iecst FUNCTION StringToBool : BOOL VAR_INPUT str : STRING; @@ -40,7 +40,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR ok : BOOL; parsedValue : BOOL; diff --git a/docs/StringToHex.md b/docs/StringToHex.md index 58e3dc1..b2da809 100644 --- a/docs/StringToHex.md +++ b/docs/StringToHex.md @@ -10,7 +10,7 @@ Converts a hexadecimal string into a `DWORD` value and returns a status code. ## Signature -```st +```iecst FUNCTION ToHex : WORD VAR_INPUT str : STRING; @@ -50,7 +50,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR status : WORD; hexResult : DWORD; diff --git a/docs/TRUNC.md b/docs/TRUNC.md index 86c3605..c62ed8b 100644 --- a/docs/TRUNC.md +++ b/docs/TRUNC.md @@ -10,7 +10,7 @@ Provides overloads of `TRUNC` that truncate `REAL` and `LREAL` values toward zer ## Signatures -```st +```iecst FUNCTION TRUNC : DINT VAR_INPUT Value : LREAL; @@ -44,7 +44,7 @@ END_FUNCTION ## Examples -```st +```iecst VAR resultReal : DINT; resultLReal : DINT; diff --git a/docs/Times.md b/docs/Times.md index 78b09f7..36bc3cc 100644 --- a/docs/Times.md +++ b/docs/Times.md @@ -23,7 +23,7 @@ Documents the time conversion functions in the `Simatic.Ax.Conversion.Times` nam ## Examples -```st +```iecst VAR simotionValue : SimotionDateTime; simaticValue : LDATE_AND_TIME; diff --git a/docs/ToInt.md b/docs/ToInt.md index 71e451c..0bd04c3 100644 --- a/docs/ToInt.md +++ b/docs/ToInt.md @@ -40,7 +40,7 @@ Provides overloaded `ToInt` functions that parse a `STRING` into signed and unsi ## Examples -```st +```iecst VAR okSint : BOOL; okUdint : BOOL;