Post by wbj0t on mobus tcp slave device. read/write holdings with 2 variables.
CODESYS Forge
talk
(Post)
Hi there. I have an issue to read and set time for the controller. In the issue many registers described as writable by 6/16 functions, and, in this time, also(!) readable! For example: I have time registers: min, hour, day, mon, year. By specifications it is possible check time (so I need always update these varibles in loop) and set time by writing these same registers, BUT how to set, if they will immediatle updated by current time after writing? So, I need to separate one address at two variables. I have seen option mark: Overlay of the process image by the holding and input register. I understand this so: When I READ by function 3, I will get variable that connected with the same INPUT address and when I WRITE by 6/16 this will change second variable that connected with HOLDING address. BUT, this mark doesnt work, when I write 6/16 and try to get by function 3, I will get written value instead INPUT variable. So, what to do?
Last updated: 2024-03-20
Post by levih on FbHTTPs_Get how to get data from a website and use it in codesys
CODESYS Forge
talk
(Post)
You get an array of DWORD into your receive buffer. You need to process this into usable data, before you can fit it into your DUT. I've made it work using FbWrite_ToIEC_ByRule in stead of Fb_JSON_ParseAndModify. I've attached images of the code. You receive the data into ARRAY[0..1023] OF DWORD. Then you use that array as the input for fbWrite_ToIEC_ByRule. To get the output from this you define a rule to fit the expected data structure including nesting levels. The you feed the rule into FbWrite_ToIEC_ByRule and then you can set the output to be of your DUT type.
Last updated: 2025-06-16
How to call the same program from library and get the vars updated.
CODESYS Forge
talk
(Thread)
How to call the same program from library and get the vars updated.
Last updated: 2023-08-23
Unable to get retain variables to work in a specific Raspberry Pi project
CODESYS Forge
talk
(Thread)
Unable to get retain variables to work in a specific Raspberry Pi project
Last updated: 2019-12-03
how to get a list of the cross reference of one variable
CODESYS Forge
talk
(Thread)
how to get a list of the cross reference of one variable
Last updated: 2018-01-17
Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2"
CODESYS Forge
talk
(Thread)
Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2"
Last updated: 2018-12-25
ModbusTCP, can i know when i get requests from slave side?
CODESYS Forge
talk
(Thread)
ModbusTCP, can i know when i get requests from slave side?
Last updated: 2018-11-19
Several py file share one external file to get some default value
CODESYS Forge
talk
(Thread)
Several py file share one external file to get some default value
Last updated: 2019-12-12
Cannot get Standard 3.5.9.0 R_TRIG functions to work on RaspberryPi3B 1.3.0.0
CODESYS Forge
talk
(Thread)
Cannot get Standard 3.5.9.0 R_TRIG functions to work on RaspberryPi3B 1.3.0.0
Last updated: 2016-10-16
Get-Property will crash because it did not evaluate to a valid getter
CODESYS Forge
talk
(Thread)
Get-Property will crash because it did not evaluate to a valid getter
Last updated: 2023-04-29
Raspberry pi get the /dev/ttyUSB number, how you do it?
CODESYS Forge
talk
(Thread)
Raspberry pi get the /dev/ttyUSB number, how you do it?
Last updated: 2021-07-23
Is there any way to get the name of the current action... pou...
CODESYS Forge
talk
(Thread)
Is there any way to get the name of the current action... pou...
Last updated: 2017-03-20
How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server
CODESYS Forge
talk
(Thread)
How to get the Raspberry Pi PLC to control a Siemens PLC with OPC server
Last updated: 2018-11-09
How to get the amount of free disk space in a plc
CODESYS Forge
talk
(Thread)
How to get the amount of free disk space in a plc
Last updated: 2022-08-08
How to get the SD card Image for the Raspberry Pi
CODESYS Forge
talk
(Thread)
How to get the SD card Image for the Raspberry Pi
Last updated: 2015-12-21
VAR_INFO from inside of a FB to get info on the instance.
CODESYS Forge
talk
(Thread)
VAR_INFO from inside of a FB to get info on the instance.
Last updated: 2019-12-04
How can I get started to write my own drivers for RPI?
CODESYS Forge
talk
(Thread)
How can I get started to write my own drivers for RPI?
Last updated: 2014-03-07
Every time I display the watch 1 window, I get a .Net exception
CODESYS Forge
talk
(Thread)
Every time I display the watch 1 window, I get a .Net exception
Last updated: 2020-02-24
How to get the clock on the computer to be variable in my pr
CODESYS Forge
talk
(Thread)
How to get the clock on the computer to be variable in my pr
Last updated: 2010-12-08
Get Deviceaddress of CPU via Python an Login via Test Manager
CODESYS Forge
talk
(Thread)
Get Deviceaddress of CPU via Python an Login via Test Manager
Last updated: 2017-03-14
3.5: How to get online to CPU with USB/CAN Kvaser
CODESYS Forge
talk
(Thread)
3.5: How to get online to CPU with USB/CAN Kvaser
Last updated: 2020-12-22
BUG: Why does I get garbage values when I use CONCAT and Array with CAA File?
CODESYS Forge
talk
(Thread)
BUG: Why does I get garbage values when I use CONCAT and Array with CAA File?
Last updated: 2019-07-04
Get Alarm Class Name and Alarm Group name from their integer ID's
CODESYS Forge
talk
(Thread)
Get Alarm Class Name and Alarm Group name from their integer ID's
Last updated: 2019-02-27
CmpIecVarAccess to get name of a type, not of a variable (instance)
CODESYS Forge
talk
(Thread)
CmpIecVarAccess to get name of a type, not of a variable (instance)
Last updated: 2016-06-08
Codesys sales and support. Is it true that Codesys wants to get more customers?
CODESYS Forge
talk
(Thread)
Codesys sales and support. Is it true that Codesys wants to get more customers?
Last updated: 2023-07-03
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.