Search talk: read file using

 
<< < 1 .. 6 7 8 9 10 .. 87 > >> (Page 8 of 87)

Read xml and write values CODESYS Forge talk (Thread)
Read xml and write values
Last updated: 2014-07-04

Read data from RS232 Codesys CODESYS Forge talk (Thread)
Read data from RS232 Codesys
Last updated: 2022-07-01

Raspberry SD card read only mode. CODESYS Forge talk (Thread)
Raspberry SD card read only mode.
Last updated: 2019-11-13

How to read string from CharBufferPtr? CODESYS Forge talk (Thread)
How to read string from CharBufferPtr?
Last updated: 2024-02-21

Read Serial Number of PLC CODESYS Forge talk (Thread)
Read Serial Number of PLC
Last updated: 2024-05-21

Time will not read 12 CODESYS Forge talk (Thread)
Time will not read 12
Last updated: 2024-10-10

Read "Homed" status from EtherCAT drive CODESYS Forge talk (Thread)
Read "Homed" status from EtherCAT drive
Last updated: 2025-01-09

sdo read write codesys 3.5 CODESYS Forge talk (Thread)
sdo read write codesys 3.5
Last updated: 2025-04-01

Canbus Slave SDO Read from Object CODESYS Forge talk (Thread)
Canbus Slave SDO Read from Object
Last updated: 2025-05-27

Post by mtho on JSON Utilities - JSON file written with invalid structure CODESYS Forge talk (Post)
I'm using the JSON Utilities SL library to write configurations in my program to a file. I'm generating the JSON data using the builder function block and all appears to work correctly. When I write the jsondata to file, I'm finding that some of the JSON elements are not being written in the right location in the file. Rather than writing they keys under the parent object, they get written outside the root JSON object at the end of the file. If I then try to read the file back into the program, I get an invalid_structure error. I don't get any errors when populating the JSON data or when writing the file. I attached an example of the JSON writer output. The problems begin with key P200. Each P200 should go under MBR1 through MBR3. Among the rest of the keys, they are supposed to be under different parent objects. I am using default values for wsLineBreak and encoding.
Last updated: 2024-03-06

Post by h4sanb on Load (or Read) File from PLC CODESYS Forge talk (Post)
I want to download program from existing PLC and upload to new PLC. How to do it?
Last updated: 2024-01-09

Post by eschwellinger on File Creation Issue CODESYS Forge talk (Post)
use the PLClogic directory to read / write files. /var/opt/codesys/PlcLogic this is due security reasons forced to use.
Last updated: 2025-03-04

Post by kuegerls on CSV Utility SL CODESYS Forge talk (Post)
Hello, I want to read a CSV file using the CSV Utility SL library, but I encounter an 'invalid_handle' error during initialization. What could be the cause? For my test program see the screenshot. I have purchased a license, and it is also installed on my PLC. Thank you in advance. Best regards, Stefan.
Last updated: 2024-05-13

Post by dagi89 on CAA File open Problems CODESYS Forge talk (Post)
Dear All, i am using Runtime CODESYS Control Win V3 - X64 Version 3.5.20.40, by using CAA file library (3.5.19.0) seems not fasible to open a file n 'C:\ciao.txt' or others absolute path. The error on File Open is 5114 File Operation Danied.. here below the implemented code and the windows file's properties. I use to implement codesys in RPI and this operation is immediate... Can someone help me in it?? Thanks in advance Dagi89
Last updated: 2024-12-21

Post by otbeka on CAA File Handling: "Read only" error CODESYS Forge talk (Post)
Hi, On CODESYS V3.5.19.50 I am using the latest 3S File Access library (CAA File & CAA Types) to save and retrieve configuration data from the User Data section of an SD card, via file called config.txt. The application reads the file to memory once upon initialisation, and then the only other operation is overwriting the file with the updated configuration whenever the user changes the settings. An issue is ocurring, seemingly randomly, where the config.txt file, and all surrounding directories, cannot be written to by the unit, returning a READ_ONLY_CAA error upon file open. This sometimes does not clear even after power-cycling the PLC several times, yet checking the file permissions with ls -l shows normal read, write, and execute access. I am wondering if this is caused by the PLC itself or by an issue in my application. I have included my CAA File handler function block (SD_Card_Bin(FB).txt) and any associated types/calls below: TYPE ConfigData : STRUCT Config : ARRAY[0..256] OF STRING(64); NumberOfStrings : UDINT; END_STRUCT END_TYPE TYPE Buffer : STRUCT Data : ARRAY[0..SIZEOF(ConfigData)] OF BYTE; DataLength : UDINT; END_STRUCT END_TYPE A case within my MAIN PRG: mode.WriteConfigDataToFile: VisuElems.CURRENTVISU := 'Screen_Write'; IF xModeHasChanged THEN iErrorCount := 0; iRoute := 0; END_IF CASE iRoute OF 0: inBuffer := ConfigData_To_Buffer(GVL.UnitData); xConfigError := FALSE; xDataConfigured := FALSE; iRoute := 1; 1 : //Read Data from Card SD_Card_Bin.strFileName :=FileName; SD_Card_Bin.iFileOperation := 2; SD_Card_Bin(xExecute :=TRUE, WriteBuffer := inBuffer, xDone =>xDataConfigured, xError=>xConfigError, strErrorCodes=>strError); IF xDataConfigured THEN SD_Card_Bin(xExecute :=FALSE); IF xConfigError THEN iRoute := 32767; ELSE iRoute :=100; END_IF END_IF 100: // The end bCurMode := mode.DisplayProcessVariables; 32767: // Config error iErrorCount := iErrorCount + 1; IF iErrorCount > 2 THEN // Repeats 3 times, if no progress abandons and returns error bCurMode := mode.WriteError; ELSE iRoute := 0; // Try again END_IF END_CASE I'd like to rule out my application as the cause of this bug - help via comments or criticism would be greatly appreciated.
Last updated: 2025-03-19

Post by transmin01 on PCAN serial "No CAN driver found" CODESYS Forge talk (Post)
Hi, I am using a PCAN mini CAN board which has the Windows drivers installed on the target PLC. PCAN board can be seen in device manager. However, I am getting "No CAN driver found" error. I have read the post https://forge.codesys.com/forge/talk/CODESYS-V2/thread/44aae19318/ and have uncommented the CmpPCANBasicDrv driver in the CodesysControl.cfg file in development PC and have copied it to the target PC. Current CodesysControl.cfg file attached. Is there anything else I am missing? Regards
Last updated: 2023-09-14

Post by nz-dave on Codesys 3.5.21 fails to copy file to USB CODESYS Forge talk (Post)
i had a similar problem trying to send files to C: on local computer. Ended up using Oscat ftp to transfer file with filezilla. i read there is an "write protection", possibly to do with windows, issue with sp19 and up. there are some config files in the codesys dir you can change, which may help. after i was able to transfer to local PC\downloads but not c: so went the ftp route. works well. https://forge.codesys.com/forge/talk/Runtime/thread/5cac1390b4/
Last updated: 2025-05-26

ethercat communication using softmotion CODESYS Forge talk (Thread)
ethercat communication using softmotion
Last updated: 2016-02-18

Using "localhost" address CODESYS Forge talk (Thread)
Using "localhost" address
Last updated: 2019-05-07

Using NetVarUdp_LIB_V23.lib CODESYS Forge talk (Thread)
Using NetVarUdp_LIB_V23.lib
Last updated: 2012-03-27

Using the filesystem? CODESYS Forge talk (Thread)
Using the filesystem?
Last updated: 2014-02-21

Using directly %MX20.0 CODESYS Forge talk (Thread)
Using directly %MX20.0
Last updated: 2008-10-07

Limits using CFC CODESYS Forge talk (Thread)
Limits using CFC
Last updated: 2006-10-12

R_Trig using or better CODESYS Forge talk (Thread)
R_Trig using or better
Last updated: 2018-06-04

CNC - using M-codes CODESYS Forge talk (Thread)
CNC - using M-codes
Last updated: 2021-11-27

<< < 1 .. 6 7 8 9 10 .. 87 > >> (Page 8 of 87)

Showing results of 2154

Sort by relevance or date