This function allows you to read the data acquired from an AXL_F_PM_EF_1F device and save it in a stru_pm_pd type ti structure or an i32 array.
The process information is read if the module is connected directly to the control or if it is connected to the EtherCAT head and then defined as device ECAT_PM.
NOTE: This instruction can be used only if the keyword ECAT_PM is included in rte.cfg.
Syntax |
i32 axio_pm_r (i32 rid, i32 slot, stru_pm_pd stru, i32 buffSize) i32 axio_pm_r (i32 rid, i32 slot, i32 buff[], i32 buffSize) |
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rid |
Robox ID |
||||||||||||||||
slot |
Device location (1-:-63) |
||||||||||||||||
stru buff |
Structure of type stru_pm_pd or i32 array where data read from the device will be written |
||||||||||||||||
buffSize |
Size in number of bytes of buff, must be a multiple of 4 |
||||||||||||||||
Result |
Returns:
|
||||||||||||||||
Validity |
Task |
||||||||||||||||
Note |
To understand the rid and slot parameters associated with modules, read the 'Configuration' section of axioline communication |
The data read by this function are as follows (with default settings):
Word |
0, 1 |
2, 3 |
4, 5 |
6, 7 |
8, 9 |
10, 11 |
12, 13 |
14, 15 |
16, 17 |
18, 19 |
20, 21 |
22, 23 |
24, 25 |
26, 27 |
28, 29 |
30, 31 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Phase |
L1 |
L2 |
L3 |
L1 |
L2 |
L3 |
N |
L1 |
L2 |
L3 |
L1 |
L2 |
L3 |
L1 |
L2 |
L3 |
Meaning |
Voltage |
Current |
Active Power active energy |
Reactive power reactive energy |
Apparent power apparent energy |
|||||||||||
Signal |
L1_Voltage L2_Voltage L3_Voltage |
L1_Current L2_Current L3_Current NeutralConductor_Current |
L1_Real_PE L2_Real_PE L3_Real_PE |
L1_Reactive_PE L2_Reactive_PE L3_Reactive_PE |
L1_Apparent_PE L2_Apparent_PE L3_Apparent_PE |
|||||||||||
Unit |
V |
A |
kW kWh |
kVAr kVArh |
kVA kVAh |
|||||||||||
Resolution |
1 mV |
1 mA |
1 W 1 Wh |
1 VAr 1 VArh |
1 VA 1 VAh |
|||||||||||
Object settings (Default = bold) |
Depending on object 0E11ₕ: 00ₕ: RMS value (RMS) 01ₕ: instantaneous value |
Depending on object 0E12ₕ: 00ₕ: power 01ₕ: energy |
||||||||||||||
Depending on object 0E13ₕ: 00ₕ:phase voltage 01ₕ: phase-to-phase voltage |
Example usage:
|