Code Monkey home page Code Monkey logo

beckhoffjsonreadwriter's Introduction

Hi there ๐Ÿ‘‹

My name is Fede! I'm a physicist, professional software developer and opensource enthusiast.

  • ๐Ÿ”ญ Iโ€™m currently working at ams OSRAM
  • ๐Ÿ’ฌ Ask me about anything related to me, programming or whatever by creating a new discussion here.
  • โšก Fun fact: you can talk to me in three different languages: italian, german and english!

beckhoffjsonreadwriter's People

Contributors

dependabot[bot] avatar fbarresi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

beckhoffjsonreadwriter's Issues

TwinCAT BSD

Hello and thank you for this great Library.

Is it planned to make the TFU003 also working on a TwinCAT BSD system? Or is it somehow already possible to run it on BSD?

read or write. They now became ReadFile and WriteFile

Hey.
Thanks for this code.
I had some issues since there is a mix of definitions in the sw/documentation with read/write and ReadFile/WriteFile.
In the Example, you use ReadFile/WriteFile, but in the actual library, you use read/write.

image

No feedback

Hello

Overall, very good job, thank you for this code.
I tried two things on write:

  1. Wrong variable name to input "File" (variable doesn't exist) - No error, no file created, no feedback
  2. If data array/structure is huge - No error, no file created, no feedback

This is async function block so will be nice to see some feedback from it like: Busy, Done etc
Even using this FB without TFU003 installed, done nothing without any feedback

CX9020

Hello,

is it possible to use this library on a CX9020 with Windows Embedded?

I Installed your lib but i get the error code 1862.

In your function you start a .exe in the background,right?

Is it possible to start .exe with Windows Embedded like on a CX9020?

No Read/Write

Hi Frederico,
Was trying to use the library ( locally on my laptop) ( both read and write) but I can't get it to work :( . The code runs but doesn't read/write to/from a JSON file. and I'm not getting any errors either. is there anything that I miss ? I appreciate any help

image

image

Getting the Ouptut

Hello Frederico,
could you please help me with using your library.

I am using the following json:

{
  "name":"John",
  "age":30, 
  "car":"blue"
}

My MAIN looks like this:

VAR
	parser : JsonParser;
	Json_Content : STRING(255);
	a : STRING;
        json : json_st;
END_VAR
parser(
	Execute:=FALSE , 
	File:= 'C:/temp/json_test.json', 
	ParseMethod:= 'Read' , // or even 'Write'
	Content:= 'json',
	HasError=> , 
	ErrorId=> );
a := json.name;

And lastly this is my struct:

TYPE json_st :
STRUCT
	name : STRING;
	age : INT;
	car : STRING;
END_STRUCT
END_TYP

The Code is getting executed so far, but the Struct Variables do not get updated with the Json Variables.
I tried lots of different things but do not see my problem. Could you please help me?

Thanks a lot

ReadFile cannot parse ARRAY OF STRUCT

Hi there.
Thank you for this library ๐Ÿ‘.

I have an issue while importing the JSON file to the structures. If I import it to a structure with ARAYS inside, it's fine but, if I try to import into an ARRAY OF STRUCT, it will not import nothing.

Can you confirm this issue?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.