PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. John
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 10 September 2020

I'm having issues writing to TIME variables using the REST API. The other non-time related types have not given me any problems (BOOL, INT, STRING, etc).


I'm sending the following request to /_pxc_api/v1.2/variables:


In this case, I want to set a TIME value of 1 hour (3600000ms). The value on the PLC, however, is not changing. I have tried a few other formats just to see if they work: "value":"T#1h", or "value":"T#3600000ms", but so far nothing has worked.


Is writing to TIME variables supported using the REST API? Is there a specific format required when doing so?


Reading a TIME variable works just fine, with it giving me a JSON number value in milliseconds.


Thank you,


Frank PLCnext Team Accepted Answer Pending Moderation

Hi John,

first of all sorry for the delay, the post has slipped through our fingers...

I've just had a chat with our dev team and indeed is the write access via REST currently not implemented.

We've have it in our backlog, but not a concrete planning for that.

Have a great weekend,


Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

John Accepted Answer Pending Moderation

Frank, thank you for the reply. For now, I will write to a DINT and then copy that to a TIME variable in the PLC.



  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.