Join us today!
Notifications
Clear all
HTTPS / REST (TF 6760) - on CX 9020 Beckhoff PLC
Topic starter
Dec 27, 2024 3:59 am
(@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
May 13, 2025 8:50 am
(@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
Forum Information
- 17 Forums
- 281 Topics
- 952 Posts
- 2 Online
- 823 Members
Our newest member: Zilmina
Latest Post: New Declare variable popup preventing autofill
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed