|
<< Click to Display Table of Contents >>
Measurement Commands |
Use a PLC Tag to execute measurement commands and configure their parameters according to the next table.
Parameters for measurement commands
N1 |
Code of a command. Please check the next table for more information |
N2 |
Parameter of a command, if required |
N3 |
Parameter of a command, if required |
N4 |
Parameter of a command, if required |
The next table contains a list of measurement commands supported by this Driver.
Measurement commands
N1 |
Command |
N2 |
N3 |
N4 |
Description |
Operation |
|---|---|---|---|---|---|---|
100 |
Extended status register (ESER) |
Not used, leave it in (zero) |
Not used, leave it in (zero) |
Not used, leave it in (zero) |
Several statuses information are stored in the extended status register and returned when executing this command. After execution, statuses information are updated. Returns a 16-bit status value with a structure described on table Structure of bits for status information |
Read-only |
101 |
Communication configuration |
Mode. Possible values are 0: :REM, 1: :HEAD, or 2: :VERB |
Not used, leave it in (zero) |
Options. Possible values are 0: Request (read-only), 1: ON (write-only), or 2: OFF (write-only) |
This command configures the main communication options. Returns for the Request option (the N4 parameter equal to zero) the values 0: OFF or 1: ON. Please check the next note for more information |
Reading or writing |
102 |
Integration |
Mode. Possible values are 0: :STAR, 1: :STOP, 2: :RES, or 3: :MODE |
Not used, leave it in (zero) |
Integration. Possible values are 0: NORM or 1: CONT. This parameter is only valid if the N2 parameter is equal to 3 (three, :MODE) |
Energy integration. Returns for :MODE (the N2 parameter equal to three) the values 0: Normal or 1: Continuous. Please check the next note for more information |
Read-only |
103 |
Measurement |
Measurement. Possible values are 0: V, 1: A, 2: W, 3: VA, 4: VAR, 5: PF, 6: DEGR, 7: VHZ, 8: AHZ, 9: WH, 10: WHP, 11: WHM, 12: AH, 13: AHP, 14: AHM, 15: VPK, or 16: APK |
Element. Possible values are 0: :ALL (write-only), 1: :SIGM (reading or writing), 2: :ELEM1 (reading or writing), 3: :ELEM2 (reading or writing), or 4: :ELEM3 (reading or writing) |
Options. Possible values are 0: Request (read-only), 1: ON (write-only), or 2: OFF (write-only) |
Enables or disables reading normal measurements. Returns for the Request option (the N4 parameter equal to zero) the values 0: OFF or 1: ON. Please check table Options for the Measurement command for more information |
Reading or writing |
104 |
Harmonics measurement |
Harmonic. Possible values are 0: SYNC, 1: VTHD, 2: V, 3: VCON, 4: ATHD, 5: A, 6: ACON, 7: PF, 8: W, 9: WCON, 10: VDEG, or 11: ADEG |
Not used, leave it in (zero) |
Options. Possible values are 0: Request (read-only), 1: ON (write-only), or 2: OFF (write-only) |
Enables or disable reading harmonic measurements. Returns for the Request option (the N4 parameter equal to zero) the values 0: OFF or 1: ON |
Reading or writing |
105 |
Time Math functions |
Item. Possible values are 0: TIME or 1: MATH |
Not used, leave it in (zero) |
Options. Possible values are 0: Request (read-only), 1: ON (write-only), or 2: OFF (write-only) |
Enables or disables reading TIME or MATH parameters. Returns for the Request option (the N4 parameter equal to zero) the values 0: OFF or 1: ON |
Reading or writing |
106 |
Harmonics presets |
Presets. Possible values are 0: VPAT, 1: APAT, 2: WPA, 3: DPAT, 4: ALL, or 5: CLE |
Not used, leave it in (zero) |
Not used, leave it in (zero) |
Enables or disables reading harmonics presets. Please check table Options for harmonics presets for more information |
Write-only |
NOTES |
•It is not advisable to change the communication parameters of the Communication configuration command during the execution of an application, because this Driver depends on this configuration to decode data. Also, the behavior of this Driver may become unpredictable if those parameters are changed while it is active. •For all other modes of the Integration command, please check the result of its execution using the ITG and ITM bits of the Extended Status Register (ESER). To enable a Request command, change the type of a Tag to Reading and the Mode parameter to 3 (three). |
Structure of bits for status information
Bit |
Description |
|---|---|
0 |
UPD (Updating) |
1 |
ITG (Integrating) |
2 |
ITM (Integrate timer busy) |
3 |
OVRS (Sigma results overflow) |
4 |
FOV (Frequency over) |
5 |
SRB (Store/Recall busy) |
6 |
OVR1 (Element 1: Measured data over) |
7 |
POV1 (Element 1: Voltage peak over) |
8 |
POA1 (Element 1: Current peak over) |
9 |
OVR2 (Element 2: Measured data over) |
10 |
POV2 (Element 2: Voltage peak over) |
11 |
POA2 (Element 2: Current peak over) |
12 |
OVR3 (Element 3: Measured data over) |
13 |
POV3 (Element 3: Voltage peak over) |
14 |
POA3 (Element 3: Current peak over) |
15 |
None |
Options for the Measurement command
Option |
N3 |
Description |
|---|---|---|
:SIGM |
1 (one) |
This option is not available in Reading mode for WT210 models |
:ELEM1 |
2 (two) |
For WT210 models (one phase), this option corresponds to Element 1 (one) |
:ELEM2 |
3 (three) |
For WT230 models (three phases and three wires), this option corresponds to Elements 1 (one) and 3 (three) |
:ELEM3 |
4 (four) |
For WT230 models (three phases and four wires), this option corresponds to Elements 1 (one), 2 (two), and 3 (three) |
Preset |
N2 |
Description |
|---|---|---|
VPAT |
0 (zero) |
Sets SYNC, VTHD, V, and VCON harmonics to ON and all others to OFF |
APAT |
1 (one) |
Sets SYNC, ATHD, A, and ACON harmonics to ON and all others to OFF |
WPA |
2 (two) |
Sets SYNC, PF, W, and WCON harmonics to ON and all others to OFF |
DPAT |
3 (three) |
Sets SYNC, VDEG, and ADEG harmonics to ON and all others to OFF |
ALL |
4 (four) |
Sets all harmonics to ON |
CLE |
5 (five) |
Sets all harmonics to OFF |