Search talk: json file reader

 
<< < 1 .. 14 15 16 17 18 .. 37 > >> (Page 16 of 37)

Post by androidzz on Json Builder problem? CODESYS Forge talk (Post)
I found my problem. The parentIndex from a new object was not connected to the root parent index
Last updated: 2024-03-11

Post by joshskellig on Publish a JSON payload via MQTT Publish (using IIot Libraries) CODESYS Forge talk (Post)
Thanks for the help! Everything now works as expected.
Last updated: 2024-04-10

Post by joshskellig on Publish a JSON payload via MQTT Publish (using IIot Libraries) CODESYS Forge talk (Post)
Thanks for the help! Everything now works as expected.
Last updated: 2024-04-10

Post by joshskellig on Publish a JSON payload via MQTT Publish (using IIot Libraries) CODESYS Forge talk (Post)
Thanks for the help! Everything now works as expected.
Last updated: 2024-04-10

Post by culius on JSON CODESYS Forge talk (Post)
Sorry that I haven't replyed to youranwser in so long time. Thank you for explaining the issue. Now everything works without a problem!
Last updated: 2024-05-21

Post by mejak on Raspberry Pi USB HID RFID Reader - read ID in plc program CODESYS Forge talk (Post)
Hello, I have an RFID reader that is detected as a keyboard. While looking for information, I came across examples using visualization. I would like to read the ID without visualization or external code in python, only in PLC. I found on the forum that you can try reading directly from potru /dev/... https://forge.codesys.com/forge/talk/Runtime/thread/24b3527036/ How to read values directly in codesys? Or maybe there is another solution? Best Regards
Last updated: 2024-01-25

Post by xlfll on How to use libdoc to implement libraries in multiple languages CODESYS Forge talk (Post)
po file to generate translation file mo, how to mo file into lmd file into the compilation library? This is not clearly described in the codesys help. Does anyone know? codesys help:https://content.helpme-codesys.com/en/LibDevSummary/localization.html#deployment-of-translated-documents
Last updated: 2025-03-13

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

Post by ph0010421 on Device Reader option from 'Tools' menu CODESYS Forge talk (Post)
Hello I've just seen this feature: very nice. Using the 'DeviceReader' project previously, I could see the SL possibility too (Dongle or Softkey). Is it possible to get this status too please?
Last updated: 2023-12-12

Post by joshskellig on Publish a JSON payload via MQTT Publish (using IIot Libraries) CODESYS Forge talk (Post)
I am trying to figure out how to get a JSON payload to properly publish to my MQTT Broker. I am able to generate JSON using the examples from Codesys, but when I send that payload via MQTT there are characters that are extra or not recognized by my MQTT client. Any idea what could be causing it? PROGRAM PLC_PRG VAR hostname: STRING := 'localhost'; port: UINT := 1883; topic: WSTRING(1024) := "testing/"; payload: BYTE; factory : JSON.JSONDataFactory; eDataFactoryError : FBF.ERROR; pJsonData : POINTER TO JSON.JSONData := factory.Create(eError => eDataFactoryError); fb_JBuilder : JSON.JSONBuilder; wsValue : WSTRING := "Value1"; diRootIndex, diObject1Index : DINT; iValue : INT := 1234; jsonArrayWriter : JSON.JSONByteArrayWriter; wsJsonData : WSTRING(1000); xFirst : BOOL := TRUE; mqttClient: MQTT.MQTTClient; mqttPublish: MQTT.MQTTPublish; mqttPublishProperties: MQTT.MQTTPublishProperties := (bPayloadFormatIndicator := 1, wsContentType := "application/json"); END_VAR // Json Functionality IF xFirst THEN fb_JBuilder(pJsonData := pJsonData, diRootObj => diRootIndex); fb_JBuilder.SetKeyWithValue("Key1", wsValue, diParentIndex := diRootIndex); diObject1Index := fb_JBuilder.SetKeyWithObject("Key2", diParentIndex := diRootIndex); fb_JBuilder.SetKeyWithValue("Key3", iValue, diParentIndex := diObject1Index); xFirst := FALSE; END_IF jsonArrayWriter(pwData := ADR(wsJsonData), udiSize := SIZEOF(wsJsonData), jsonData := pJsonData^, xAsyncMode := FALSE); MSU.StrTrimW(pString:= ADR(wsJsonData)); // MQTT Functionality mqttClient( sHostname:=hostname, uiPort:=port, eMQTTVersion:=MQTT.MQTT_VERSION.V5 ); mqttPublish( mqttClient:=mqttClient, pbPayload:=ADR(wsJsonData), udiPayloadSize:=SIZEOF(wsJsonData), wsTopicName:=topic, mQTTPublishProperties:=mqttPublishProperties );
Last updated: 2024-04-10

Post by opineiro on How to manage variable types larger than 64 bits - Ethernet/IP CODESYS Forge talk (Post)
Hi there, I have a Keyence bar code reader connected to my plc through Ethernet/IP. The Bar code is 20 digits long (like 30100790020493036016), the scanner reads it correctly (I can verify that through the keyence software) but when it sends it through ETH/IP, it doesn't fit into a 64 bit variable and it trunks the data.(I've tried ULINT and LWord without success). When I loaded the EDS file, the read variable was defined as a byte with 128 bits length, which is quite strange for me. (see attached picture) How do I manage this variable? Thanks!
Last updated: 2024-09-23

Post by corriibme on Setting array values with JSON Utilities SL CODESYS Forge talk (Post)
I have been trying to set an array value to a JSON structure of this form: {"key": [1,2,3,4]} While I have been able to create the key and set its value to an empty array, I've not had any luck in putting any value in that array. objindex:= fb_JBuilder.SetKeyWithArray("Key6", diParentIndex := diRootIndex); objindex2:= fb_JBuilder.SetValue(value:= iValue2, diParentIndex:= objindex); iValue2: ARRAY[0..3] OF INT:= [1,2,3,4]; The two lines of code above produce {"key6": []} . The second line essentially has no effect.
Last updated: 2024-05-12

How to intercept a variation in the RetainPerstist variables (for saving to file) CODESYS Forge talk (Thread)
How to intercept a variation in the RetainPerstist variables (for saving to file)
Last updated: 2018-08-03

Post by hki75 on FILE_OPERATION_DENIED CODESYS Forge talk (Post)
mmm.. I moved my file to /var/opt/codesys/PlcLogic directory but I still getting FILE_OPERATION_DENIED.. Did I miss something? file rights are 0755
Last updated: 2023-09-27

Cannot Save CSV File on Windows Computer Using CODESYS and Control Win CODESYS Forge talk (Thread)
Cannot Save CSV File on Windows Computer Using CODESYS and Control Win
Last updated: 2024-07-04

Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui CODESYS Forge talk (Thread)
Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
Last updated: 2024-08-07

Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui CODESYS Forge talk (Thread)
Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
Last updated: 2024-08-07

Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui CODESYS Forge talk (Thread)
Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
Last updated: 2024-08-07

Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui CODESYS Forge talk (Thread)
Test a manager script (.tsd file{xml document}) not starting from Git CI heedlessly/ without ui
Last updated: 2024-08-08

Post by pierre on difference between stub file and source file in scriptengine CODESYS Forge talk (Post)
same situation for DeviceID. In the stubfile this is Deviceid
Last updated: 2024-09-23

Post by eschwellinger on Persistence Manager: Config File not found? CODESYS Forge talk (Post)
I would check with the CODESYS file browser if these files exits on your system (PlcLogic directory)
Last updated: 2024-11-02

Post by fleaplc on File access operation denied CODESYS Forge talk (Post)
file to access has to be into the path /var/opt/codesys/PlcLogic I has same issue time ago...
Last updated: 2024-11-17

Post by thomas-moba on app file renamed as err. file CODESYS Forge talk (Post)
Hello, we have the same problem. What is it all about?
Last updated: 2025-01-09

Post by nz-dave on sysfile- transfer file to pc CODESYS Forge talk (Post)
worked around the issue- ftp client on plc, file sent through filezilla to PC.
Last updated: 2025-04-26

File reading/writing works great in simulation mode, but not in soft-PLC (RTE) mode CODESYS Forge talk (Thread)
File reading/writing works great in simulation mode, but not in soft-PLC (RTE) mode
Last updated: 2017-05-12

<< < 1 .. 14 15 16 17 18 .. 37 > >> (Page 16 of 37)

Showing results of 922

Sort by relevance or date