Join us today!

HTTPS / REST (TF 67...
 
Notifications
Clear all

HTTPS / REST (TF 6760) - on CX 9020 Beckhoff PLC

2 Posts
2 Users
0 Reactions
199 Views
Posts: 1
Topic starter
(@shafibug)
New Member
Joined: 5 months ago

i am trying to run a code on my cx 9020 (ARM Controller Windows CE 7 - Build 4024.53 ) using twincat 3 (build 4024.64) I have to call a rest api POST method the code runs without errors and a build is produced and loaded into plc in run mode i receive an error Socket_Err_No_Connection in one of the flags and I believe this what is creating this error. Please advise

Reply
1 Reply
Posts: 1
(@chris-o)
New Member
Joined: 1 year ago

I know the post is old... but if you still have problems would be nice to see your code.

 

First you have to configure your client like this:

// init
IF NOT fbHttpClient.bConfigured THEN
fbHttpClient.sHostname:='192.168.0.101';
fbHttpClient.nHostPort:=8088;
fbHttpClient.bKeepAlive:= FALSE;
fbHttpClient.tConnectionTimeout:=T#10S;
END_IF

After that you can start a small state machine with your POST method.

If you need still help you can answer in this threat... I can show you my solution...

 

BR Chris

 

 

Reply
Share: