Search talk: check object is null

 
<< < 1 .. 3 4 5 6 7 .. 93 > >> (Page 5 of 93)

"Are you sure to delete the object?" setting CODESYS Forge talk (Thread)
"Are you sure to delete the object?" setting
Last updated: 2022-07-25

Execute custom object commands in python script CODESYS Forge talk (Thread)
Execute custom object commands in python script
Last updated: 2014-01-09

Reset to values from project information in Application Object CODESYS Forge talk (Thread)
Reset to values from project information in Application Object
Last updated: 2018-01-10

How to sort JSON object in codesys CODESYS Forge talk (Thread)
How to sort JSON object in codesys
Last updated: 2024-05-08

No source code available for this object CODESYS Forge talk (Thread)
No source code available for this object
Last updated: 2024-07-15

No source code available for this object CODESYS Forge talk (Thread)
No source code available for this object
Last updated: 2024-07-16

OPC-UA object instances preexisting in imported xml information model CODESYS Forge talk (Thread)
OPC-UA object instances preexisting in imported xml information model
Last updated: 2024-08-08

Unable to add alarm configuration object to project CODESYS Forge talk (Thread)
Unable to add alarm configuration object to project
Last updated: 2024-09-27

Post by timvh on Array to String CODESYS Forge talk (Post)
The string_Util_Intern is not the library I referred to. With a CONCAT function (also with the string util library) a search is done for the NULL character. If you concatenate 20000 characters to one string, then the longer the string, the longer it takes to find this NULL character.
Last updated: 2024-07-24

Post by benediktenger on Access project information of references library by script CODESYS Forge talk (Post)
Hi, I need to accesss to project information of a referenced library in the project. At least I need the "Released" flag from these information to check that no project gets shipped with unreleased libraries. Unfortunally, I do not get this information by script. I archieved to get the library reference object and the managed library object but both won't give me this flag but only basic information like company, name, version, etc. Here is my code: # get the library refernces proj = projects.primary objects = proj.get_children(recursive=True) for object in objects: if object.is_libman: for libref in iter(object): if libref.is_placeholder and isinstance(libref.effective_resolution,str): print(libref) print(libref.name) # get the managed libraries libs = librarymanager.get_all_libraries() for lib in libs: print(lib.displayname) print(lib.version) Does somebody know how do get these information?
Last updated: 2023-10-23

Post by eschwellinger on EtherCat-Rexroth Drive lost connection or no? CODESYS Forge talk (Post)
check on EthercatMaster status page if you loose Ethercat frames - and check how the jitter is on Ethercat Master task
Last updated: 2023-10-25

Is possible to transform a .sqlite file generated by a Trend Recording object to a .csv file? CODESYS Forge talk (Thread)
Is possible to transform a .sqlite file generated by a Trend Recording object to a .csv file?
Last updated: 2017-12-22

Python Scripting: How to detect and handle "Object reference not set to an instance of an object" error CODESYS Forge talk (Thread)
Python Scripting: How to detect and handle "Object reference not set to an instance of an object" error
Last updated: 2023-08-16

OPC-UA Server, Symbol Set: Raise an error: Object reference not set to an instance of an object. CODESYS Forge talk (Thread)
OPC-UA Server, Symbol Set: Raise an error: Object reference not set to an instance of an object.
Last updated: 2024-08-08

Post by eschwellinger on Access to the path *** is denied CODESYS Forge talk (Post)
it is textlist related as far as I remember, let me check if the is a workaround.
Last updated: 2024-02-02

Post by struccc on Release SP20 - Changes in behaviour? CODESYS Forge talk (Post)
Dear all, I've just started to migrate some of my ancient projects to SP20. There is one strange error (?) I have noticed so far. In a method call, depending on the circumstances I would like to return reference to an object, or an invalid reference: METHOD Add_EVT_OUT : REFERENCE TO FB_MSG VAR END_VAR IF __ISVALIDREF(refMSG_Entry) THEN Add_EVT_OUT REF= MANAGER.AddMsg_EVT_OUT( refMSG_Entry, _Get_EVT_Message(MSG_EVENT.OUT), _Get_EVT_AddCode(MSG_EVENT.OUT) )^; ELSE Add_EVT_OUT := 0; END_IF So far setting a reference variable to 0, did this. But now, the expression Add_EVT_OUT := 0; gives an error: [ERROR] DB_WTP_370: Add_EVT_ACK MSG_TRIGGER_EXT: C0032: Cannot convert type 'BIT' to type 'REFERENCE TO FB_MSG' Naturally... I can write: Add_EVT_OUT := DWORD#0; But is this the correct way? Is there any constant I could use instead, like "NULL"? Or this is totally wrong and to be avoided?
Last updated: 2024-03-24

Post by eschwellinger on PFC200 Update to 4.9.0.0 - No Connection CODESYS Forge talk (Post)
which PFC Firmware is this? -check with wbm
Last updated: 2023-09-28

Post by felipemsgarcia on Generic EtherCAT slave CODESYS Forge talk (Post)
Hello Edwin, Thank you foryour answer but, I believe I was not very clear in my question, sorry. What I wanted to know is if there is a generic EtherCAT slave object already in CODESYS that I can use for anything, remote IO, Drives, VFD's and so on, as long as I match PDO's. Is there such an object? Thank you again!
Last updated: 2024-05-16

Post by felipemsgarcia on Generic EtherCAT slave CODESYS Forge talk (Post)
Hello all, I still couldn't find the answer. I wanted to know is if there is a generic EtherCAT slave object already in CODESYS that I can use for anything, remote IO, Drives, VFD's and so on, as long as I match PDO's. Is there such an object? Thank you!
Last updated: 2024-06-20

Post by jtebokkel on Set REFERENCE to 0 (null) when no longer used CODESYS Forge talk (Post)
yes, it works
Last updated: 2024-10-07

Post by ara32 on CODESYS 4 Linux: CODESYS Forge talk (Post)
Hello! I managed to correctly launch CODESYS Developer Studio 3.5.17, almost all functionality works. The only issue remaining is that when connecting to a device and obtaining its public key, the NCryptEncrypt function is called, which is not fully implemented in the DLL source code, resulting in the connection not being established. Currently, the code of this function in the Wine repository looks like this: SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding, BYTE *output, DWORD outsize, DWORD *result, DWORD flags) { struct object *key_object = (struct object *)key; TRACE("(%#Ix, %p, %lu, %p, %p, %lu, %p, %#lx)\n", key, input, insize, padding, output, outsize, result, flags); if (flags & ~(NCRYPT_NO_PADDING_FLAG | NCRYPT_PAD_OAEP_FLAG | NCRYPT_PAD_PKCS1_FLAG | NCRYPT_SILENT_FLAG)) { FIXME("Flags %lx not supported\n", flags); return NTE_BAD_FLAGS; } if (flags & NCRYPT_NO_PADDING_FLAG || flags & NCRYPT_PAD_OAEP_FLAG) { FIXME("No padding and oaep padding not supported\n"); return NTE_NOT_SUPPORTED; } if (key_object->type != KEY) return NTE_INVALID_HANDLE; return map_ntstatus(BCryptEncrypt(key_object->key.bcrypt_key, input, insize, padding, NULL, 0, output, outsize, result, flags)); } The program crashes due to the NCRYPT_PAD_OAEP_FLAG flag. I'm not proficient in C++, but I attempted to add handling myself, and here's the result: SECURITY_STATUS WINAPI NCryptEncrypt(NCRYPT_KEY_HANDLE key, BYTE *input, DWORD insize, void *padding, BYTE *output, DWORD outsize, DWORD *result, DWORD flags) { struct object *key_object = (struct object *)key; TRACE("(%#Ix, %p, %lu, %p, %p, %lu, %p, %#lx)\n", key, input, insize, padding, output, outsize, result, flags); if (flags & ~(NCRYPT_NO_PADDING_FLAG | NCRYPT_PAD_OAEP_FLAG | NCRYPT_PAD_PKCS1_FLAG | NCRYPT_SILENT_FLAG)) { FIXME("Flags %lx not supported\n", flags); return NTE_BAD_FLAGS; } if (flags & NCRYPT_NO_PADDING_FLAG) { FIXME("No padding not supported\n"); return NTE_NOT_SUPPORTED; } BCRYPT_OAEP_PADDING_INFO oaepInfo = { 0 }; oaepInfo.pszAlgId = BCRYPT_SHA1_ALGORITHM; NTSTATUS status = BCryptEncrypt(key_object->key.bcrypt_key, input, insize, &oaepInfo, NULL, 0, output, outsize, result, flags); if (key_object->type != KEY) return NTE_INVALID_HANDLE; return map_ntstatus(BCryptEncrypt(key_object->key.bcrypt_key, input, insize, padding, NULL, 0, output, outsize, result, flags)); } Now, when calling the connection, it crashes with the error "bcrypt:BCryptEncrypt flags 0x4 not implemented." Can anyone help with enhancing this functionality or at least point me in the right direction?
Last updated: 2024-03-22

Post by eschwellinger on Official MQTT-Client: MAX_RECEIVE_BUFFER_SIZE_EXCEEDED CODESYS Forge talk (Post)
check...taskinfo online check plcshell - plcload
Last updated: 2023-09-27

How to check package and licence availability CODESYS Forge talk (Thread)
How to check package and licence availability
Last updated: 2018-01-22

How to check if any alarms haven't been acknowledged? CODESYS Forge talk (Thread)
How to check if any alarms haven't been acknowledged?
Last updated: 2019-12-18

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

<< < 1 .. 3 4 5 6 7 .. 93 > >> (Page 5 of 93)

Showing results of 2311

Sort by relevance or date