Ist string[16] 16 Byte lang ???
CODESYS Forge
talk
(Thread)
Ist string[16] 16 Byte lang ???
Last updated: 2005-08-23
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
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 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
About byte swap and convert into 16 bits
CODESYS Forge
talk
(Thread)
About byte swap and convert into 16 bits
Last updated: 2023-12-04
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
how can i get the 16# value from H
CODESYS Forge
talk
(Thread)
how can i get the 16# value from H
Last updated: 2018-10-02
error #16, Watchdog expired fault task = BIT_TASK or SlowTa
CODESYS Forge
talk
(Thread)
error #16, Watchdog expired fault task = BIT_TASK or SlowTa
Last updated: 2023-06-30
*** INVALID 16#40 - what this means ??
CODESYS Forge
talk
(Thread)
*** INVALID 16#40 - what this means ??
Last updated: 2017-09-25
two 16-bit variables combining into a 32-bit
CODESYS Forge
talk
(Thread)
two 16-bit variables combining into a 32-bit
Last updated: 2018-12-03
Result of multiplication always 16 bits?
CODESYS Forge
talk
(Thread)
Result of multiplication always 16 bits?
Last updated: 2012-08-05
Keine Verbindung n firmwareupdate Wago 750-841 fw 16
CODESYS Forge
talk
(Thread)
Keine Verbindung n firmwareupdate Wago 750-841 fw 16
Last updated: 2009-03-26
Codesys 3.5 SP 16 "network adapter could not be opened"
CODESYS Forge
talk
(Thread)
Codesys 3.5 SP 16 "network adapter could not be opened"
Last updated: 2021-12-10
Error IoDrvEthernetIP: Connection Failure. (16#1) How to solve
CODESYS Forge
talk
(Thread)
Error IoDrvEthernetIP: Connection Failure. (16#1) How to solve
Last updated: 2024-07-22
ModbusServer became unreachable if reach maximum of 16 byClientConnections
CODESYS Forge
talk
(Thread)
ModbusServer became unreachable if reach maximum of 16 byClientConnections
Last updated: 2024-08-27
Using Beckhoff EL3356 1-channel precise load cell analysis (resistor bridge), 16 bit
CODESYS Forge
talk
(Thread)
Using Beckhoff EL3356 1-channel precise load cell analysis (resistor bridge), 16 bit
Last updated: 2016-05-30
Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook
CODESYS Forge
talk
(Thread)
Rpi Runtime stops after about 16 hours with an Exception with CommCycleHook
Last updated: 2023-04-24
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
CODESYS Forge
talk
(Thread)
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
Last updated: 2022-01-13
Post by felipemsgarcia on EtherCAT - Force Control Word
CODESYS Forge
talk
(Post)
What worked for me: Use SMC_SetControllerMode and set the nControllerMode to SMC_nocontrol. With that, you can control the drive via Modes of Operation(16#6060) and Controlword(16#6040) directly. Hope that helps, Cheers!
Last updated: 2023-08-31
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
.