Check for null pointer
CODESYS Forge
talk
(Thread)
Check for null pointer
Last updated: 2021-05-19
Check for valid interface?
CODESYS Forge
talk
(Thread)
Check for valid interface?
Last updated: 2022-01-29
Ist string[16] 16 Byte lang ???
CODESYS Forge
talk
(Thread)
Ist string[16] 16 Byte lang ???
Last updated: 2005-08-23
Check For Open Dialogs On Client
CODESYS Forge
talk
(Thread)
Check For Open Dialogs On Client
Last updated: 2023-09-26
UTF-8 / UTF-16
CODESYS Forge
talk
(Thread)
UTF-8 / UTF-16
Last updated: 2011-02-23
CRC 16
CODESYS Forge
talk
(Thread)
CRC 16
Last updated: 2007-06-10
Farbwerte 16#00xxxxxx
CODESYS Forge
talk
(Thread)
Farbwerte 16#00xxxxxx
Last updated: 2005-12-04
CmpCodeMeter check for MC License doesn't work
CODESYS Forge
talk
(Thread)
CmpCodeMeter check for MC License doesn't work
Last updated: 2019-05-02
Build/check project
CODESYS Forge
talk
(Thread)
Build/check project
Last updated: 2011-06-07
Modbus channel request check.
CODESYS Forge
talk
(Thread)
Modbus channel request check.
Last updated: 2015-06-12
Check class relationship
CODESYS Forge
talk
(Thread)
Check class relationship
Last updated: 2018-09-03
Check Box
CODESYS Forge
talk
(Thread)
Check Box
Last updated: 2010-09-14
PFC200/100 IO-Check
CODESYS Forge
talk
(Thread)
PFC200/100 IO-Check
Last updated: 2019-09-09
Error: "IODrvEthernetIP: Connection failure. (16#1)" "Extended Status: Target connection not found. (16#107)"
CODESYS Forge
talk
(Thread)
Error: "IODrvEthernetIP: Connection failure. (16#1)" "Extended Status: Target connection not found. (16#107)"
Last updated: 2023-04-05
IoDrvEthernetIP: Connection Failure (16#1)
CODESYS Forge
talk
(Thread)
IoDrvEthernetIP: Connection Failure (16#1)
Last updated: 2020-10-21
OPC communication with 16 PLCs
CODESYS Forge
talk
(Thread)
OPC communication with 16 PLCs
Last updated: 2011-12-06
COdesys 3.5 SP15 - 16 Canvas
CODESYS Forge
talk
(Thread)
COdesys 3.5 SP15 - 16 Canvas
Last updated: 2020-07-30
Writing 16 byte SDO over Ethercat
CODESYS Forge
talk
(Thread)
Writing 16 byte SDO over Ethercat
Last updated: 2019-04-22
Post by voffi on Converting UINT into bytes and converting 2Bytes into UINT
CODESYS Forge
talk
(Post)
There are some ways. One is to use SHR and SHL and it depends on your byte order in the data array. For Motorola byte order: PROGRAM PLC_PRG VAR u : UINT; byte_array_in : ARRAY [1..8] OF BYTE := [16#11, 16#12, 16#13, 16#14, 16#15, 16#16, 16#17]; byte_array_out : ARRAY [1..8] OF BYTE; END_VAR u := SHL(TO_UINT(byte_array_in[2]), 8) + TO_UINT(byte_array_in[1]); byte_array_out[1] := TO_BYTE(u); byte_array_out[2] := TO_BYTE(SHR(u, 8)); If it's Intel byte order just change 1 and 2 in the array indexes.
Last updated: 2023-12-07
"You are using inconsistent overlay settings, please check your compiler defines for the current application" error
CODESYS Forge
talk
(Thread)
"You are using inconsistent overlay settings, please check your compiler defines for the current application" error
Last updated: 2024-05-29
Check Connection Status of the OPC-UA Server for Data Source Manager with OPC-UA Client
CODESYS Forge
talk
(Thread)
Check Connection Status of the OPC-UA Server for Data Source Manager with OPC-UA Client
Last updated: 2024-09-07
Post by callumo1 on Check For Open Dialogs On Client
CODESYS Forge
talk
(Post)
Okay, Thanks for the help
Last updated: 2023-09-26
Post by otbeka on CmpCrypto CryptoGenerateHash Not Outputting
CODESYS Forge
talk
(Post)
Hi, I have been trying to use CryptoGenerateHash from the CmpCrypto Implementation library. My code is taken almost directly from the CryptoDemo.project example provided on Codesys Forge, yet the CryptoGenerateHash function does not write to the address listed in pHash. RTS_IEC_RESULT is OK, but I am getting nothing out of the function. No errors either, all my libraries are up to date. Any help would be appreicated! PROGRAM PLC_PRG VAR sMessage : MESSAGE := 'The red fox runs across the ice'; abyHashCode : HASH_CODE := [ 16#52, 16#ED, 16#87, 16#9E, 16#70, 16#F7, 16#1D, 16#92, 16#6E, 16#B6, 16#95, 16#70, 16#08, 16#E0, 16#3C, 16#E4, 16#CA, 16#69, 16#45, 16#D3 ]; xMessageOK : BOOL; END_VAR xMessageOK := CheckMessage(sMessage, abyHashCode); FUNCTION CheckMessage : BOOL VAR_INPUT sMessage : REFERENCE TO MESSAGE; abyHashCode : REFERENCE TO HASH_CODE; END_VAR VAR _hHASH : RTS_IEC_HANDLE := CryptoGetAlgorithmById(ui32CryptoID:=RtsCryptoID.HASH_SHA1, pResult:=0); Result : RTS_IEC_RESULT; bsMessage : RtsByteString := (ui32MaxLen:=SIZEOF(sMessage), pByData:=ADR(sMessage), ui32Len:=TO_UDINT(LEN(sMessage))); abyNewHashCode : HASH_CODE; bsNewHashCode : RtsByteString := (ui32MaxLen:=SIZEOF(abyNewHashCode), pByData:=ADR(abyNewHashCode)); diCmpResult : DINT; END_VAR Result := CryptoGenerateHash(hAlgo:=_hHASH, pData:=ADR(bsMessage), pHash:=ADR(bsNewHashCode)); diCmpResult := SysMemCmp(pBuffer1:=ADR(abyHashCode), pBuffer2:=ADR(abyNewHashCode), udiCount:=SIZEOF(HASH_CODE)); CheckMessage := diCmpResult = 0;
Last updated: 2024-09-06
Compiler Pragma Check constant value
CODESYS Forge
talk
(Thread)
Compiler Pragma Check constant value
Last updated: 2018-02-21
CRC check in library files
CODESYS Forge
talk
(Thread)
CRC check in library files
Last updated: 2014-05-15
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.