Read/Write JSON Objects in PLC

Hi,

I would like to send or read a JSON Object from the Datalayer using PLC. Is this possible to do? 

 

Is there a Documentation on how to execute Methods on the Datalayer? E.g. Jog Axis not through the Motion callable but through the Datalayer motion/axs/Axis_1/cmd/...

 

Thank you

Best reply by CodeShepherd

In general a JSON is also just a string.

When talking of the ctrlX Data Layer there are some data stored as flatbuffer. How wor with this you can see as some examples in this thread.

If you really want to use the functions of the Data Layer is possible via the standard interface that is also available via the REST API. The more common way in my opinion would be to use the CXA_MOTION library. There are functions for commanding included:

 

 

View original
1 reply