Post by mondinmr on Direct Pointers in IOMapping for EtherCAT with IoDrvEthercatLib.ETCSlave_Dia
CODESYS Forge
talk
(Post)
Using SDO, I can read the EtherCAT mappings and offsets from various registers like 0x1c12, 0x1c13, etc. When I obtain registers mapped in the PDOs and various offsets, I could technically access directly to the statusword, controlword, etc., if they are mapped. I have noticed that on IoDrvEthercatLib.ETCSlave_Diag I can find pointers to the input and output buffers. However, although the input buffer can be easily read by referring to what has been obtained from the SDOs, it is not possible to write to the output buffer, as it is overwritten in each cycle by the data from the IOMapping task. Is there a way, knowing an instance of IoDrvEthercatLib.ETCSlave_Diag, to obtain the pointer to the first data in the IOMapping? The offsets are identical to those of the PDOs, but obviously the data is a copy. For me, the cleanest thing would be to access the pointers on IOMapping, for DS402a devices to retrieve the key data and point them to internal references. I need to know this as, having developed our own motion library, I would like to simplify the initial setup by eliminating unnecessary and nonsensical mappings that can lead users to unnecessary errors. In the current version that we have been using for years, we have to map everything manually. I would like to pass only the slave reference to the FB_init constructors and eliminate the mapping.
Last updated: 2024-02-12
CODESYS V35SP12 does not save data setting with rapsberry after reboot
CODESYS Forge
talk
(Thread)
CODESYS V35SP12 does not save data setting with rapsberry after reboot
Last updated: 2018-04-17
2D array , data move from a column to another column
CODESYS Forge
talk
(Thread)
2D array , data move from a column to another column
Last updated: 2011-03-23
Which kinds of data is transferred with 'Scan for devices' command?
CODESYS Forge
talk
(Thread)
Which kinds of data is transferred with 'Scan for devices' command?
Last updated: 2020-12-14
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
"Out of global data memory". Is there a way to increase the memory?
CODESYS Forge
talk
(Thread)
"Out of global data memory". Is there a way to increase the memory?
Last updated: 2022-03-28
store trend data in the PLC - How to use it (Codeys 2.3.9.7)
CODESYS Forge
talk
(Thread)
store trend data in the PLC - How to use it (Codeys 2.3.9.7)
Last updated: 2022-04-07
[SOLVED][ModBus TCP/IP] How to read data from thermostat.
CODESYS Forge
talk
(Thread)
[SOLVED][ModBus TCP/IP] How to read data from thermostat.
Last updated: 2017-06-08
How do I configure a visualisation text object to enter data?
CODESYS Forge
talk
(Thread)
How do I configure a visualisation text object to enter data?
Last updated: 2016-05-20
FbHTTPs_Get how to get data from a website and use it in codesys
CODESYS Forge
talk
(Thread)
FbHTTPs_Get how to get data from a website and use it in codesys
Last updated: 2021-11-23
3.5.17: Setting up OPCUA Client data source to another PLC OPCUA server
CODESYS Forge
talk
(Thread)
3.5.17: Setting up OPCUA Client data source to another PLC OPCUA server
Last updated: 2021-11-02
i need to do a data logging with 750-842
CODESYS Forge
talk
(Thread)
i need to do a data logging with 750-842
Last updated: 2013-08-26
How to read SD card data and store in array
CODESYS Forge
talk
(Thread)
How to read SD card data and store in array
Last updated: 2012-11-26
exporting or copying the COE online data from an ethercat slave device
CODESYS Forge
talk
(Thread)
exporting or copying the COE online data from an ethercat slave device
Last updated: 2019-10-30
PM564 ETH for reading data from modbus serial slave using COM1 port
CODESYS Forge
talk
(Thread)
PM564 ETH for reading data from modbus serial slave using COM1 port
Last updated: 2017-11-28
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
CODESYS Forge
talk
(Thread)
Eine Nummer (Data Type=Double) Schicken mit TCP Client Server Codesys
Last updated: 2021-09-08
Save the data log file in the USB from the visualization
CODESYS Forge
talk
(Thread)
Save the data log file in the USB from the visualization
Last updated: 2021-01-25
Send Data to a specified Register with TCP/IP Cleint Server
CODESYS Forge
talk
(Thread)
Send Data to a specified Register with TCP/IP Cleint Server
Last updated: 2021-08-25
can I send data over udp/tcp in simulation mode?
CODESYS Forge
talk
(Thread)
can I send data over udp/tcp in simulation mode?
Last updated: 2016-06-05
Profinet Master on RPI3 with CodeSys Control - No live data on I/O
CODESYS Forge
talk
(Thread)
Profinet Master on RPI3 with CodeSys Control - No live data on I/O
Last updated: 2017-07-06
Wie kann ich auf alle Benutzerdaten zugreifen? How to access User-Data?
CODESYS Forge
talk
(Thread)
Wie kann ich auf alle Benutzerdaten zugreifen? How to access User-Data?
Last updated: 2018-01-16
Wago_IO-Link Master 750-657 unable to read all data frame
CODESYS Forge
talk
(Thread)
Wago_IO-Link Master 750-657 unable to read all data frame
Last updated: 2022-06-10
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
CODESYS Forge
talk
(Thread)
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
Last updated: 2019-09-10
Trend to display Wago 750-880 SD memory data logging
CODESYS Forge
talk
(Thread)
Trend to display Wago 750-880 SD memory data logging
Last updated: 2012-10-24
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
CODESYS Forge
talk
(Thread)
Error 3803: (2): Out of data global memory. Variable 'CAN1_CANREMOTE_INFO'. 5904 bytes.
Last updated: 2019-09-06
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
.