Please enable JavaScript to view this site.

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.

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:

Value

Description

> 0

Operation performed successfully

-1

Illegal parameter: rid

-2

Illegal parameter: slot

-3

Illegal parameter: non-PM slot

-4

Illegal parameter: buff == NULL

-5

Illegal parameter: buffSize is not a multiple of 4

-6

Error in read

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


 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC