SIEMENS S7-1200 and JSON format

boros000

Member
Join Date
Sep 2012
Location
Sf.Gheorghe
Posts
29
Hello all,
I have a small project to implement a HTTP_GET Function in S71200 to get a JSON formatted string from Ethernet partner and stock it in the FB's static parameter.
How can I start to work on it?
Yes, I already searched google.
Thank you.
 
I've never done much with the HTTP protocol or JSON, but you should probably start with looking at the TSEND/TRECV blocks. Those are the blocks in the 1200 for sending/receiving arbitrary TCP/IP data.

I think that most people have the best luck implementing protocol parsers in SCL, which is a pascal based language. It isn't object oriented, but it supports if/then, for/next, select/case, etc. It would probably be possible to do in ladder, but it would be much messier.
 

Similar Topics

Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
6
Views
284
commentaire communiqué siemens s7-1200 avec vfd delta ? (cablage et sur tia portal )
Replies
0
Views
148
Hi, I have a 1214 on ip 192.168.0.100. This is connected to other modules through a switch on same network. I need to connect this to a company...
Replies
1
Views
193
Hi Experts, I would like to make firmware upgrade from v3.0 to v4.5 (S7-1200 CPU 1215C). Can I do it from v3.0 to v4.5? Do I need to take some...
Replies
6
Views
321
Hi Guys, I am trying to establish communication over profinet between Siemens S7-1200 PLC as IO device and codesys plc as IO controller. But I am...
Replies
43
Views
2,961
Back
Top Bottom