0% found this document useful (0 votes)
5 views

CVM-R8A_Modbus_protocol_functions

The document provides an instruction manual for the CVM-R8 and CVM-R8A devices, detailing their communication capabilities using the MODBUS protocol. It outlines supported MODBUS functions, including reading relay and input statuses, controlling relays, and reading long type registers. Additionally, it includes examples of inquiries and responses for various functions, along with a directory of memory and register maps for the devices.

Uploaded by

Luis Leal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

CVM-R8A_Modbus_protocol_functions

The document provides an instruction manual for the CVM-R8 and CVM-R8A devices, detailing their communication capabilities using the MODBUS protocol. It outlines supported MODBUS functions, including reading relay and input statuses, controlling relays, and reading long type registers. Additionally, it includes examples of inquiries and responses for various functions, along with a directory of memory and register maps for the devices.

Uploaded by

Luis Leal
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

MODBUS PROTOCOL

CVM-R8(ver. A817)
CVM-R8A (ver. 8A21)

INSTRUCTION MANUAL
( M 981 384 / 01 A )

(c) CIRCUTOR S.A.


----------------------------------------------------------------- Pag Nº 2

CVM-R8 (ver. A817)


CVM-R8A (ver. 8A21).
MODBUS PROTOCOL
The CVM-R8 & CVM-R8A (ver. A807 and ver. 8A21) can communicate either using the
own CIRCUTOR’s protocol (CIRBUS) or the standard MODBUS protocol.

SUPPORTED MODBUS’ FUNCTIONS


FUNCTION 01 Read relay status (coil status)

FUNCTION 02 Read input status

FUNCTION 3 or 4 Read n Words. This is the function used to read long type
registers from the CVM-R8.
All electrical parameters are long type; since MODBUS
manages them as integers, two bytes are required to inquire
each parameter (longs) from the CVM-R8.

FUNCTION 5 Open/Close one relay (Force single coil).

FUNCTION 6 Write 1 Word. (Preset single register) .

FUNCTION 15 Open/Close several relays (Force multiple coils)

FUNCTION 16 Preset multiple registers


----------------------------------------------------------------- Pag Nº 3

EXAMPLES
FUNCTION 01 Read relay status (coil status)

INQUIRY 63 01 00 64 00 08 74 51

63 Peripheral number, 99 in decimal


01 Function for relay status readout
00 64 Starting address (relay R1 = 100, that is, 64 in hexadecimal)
00 08 Number of registers to be read (8 relays : from 100 to 107)
74 51 CRC character

RESPONSE 63 01 01 01 8F F0

63 Number of the peripheral that is answering, 99 in decimal


01 Function for relay status readout
01 Bytes received (Byte count).
01 0001 en decimal : relay R1 ON and the rest OFF.
8FF0 CRC character
--------------------------------------------------------------------------------------------------
----------------------------------------------------------------- Pag Nº 4

FUNCTION 02 Read input status

INQUIRY 63 02 00 01 00 06 A1 8A

63 Peripheral number, 99 in decimal


02 Function for input status readout
00 01 Starting address (input 1 = 1; digital inputs from 1 to 18)
00 06 Number of registers to be read (6 inputs)
A18A CRC character

RESPONSE 63 02 01 3F FE 20

63 Number of the peripheral that is answering, 99 in decimal


02 Function for input status readout
01 Bytes received (Byte count).
3F 3 F = 0 0 0 1 1 1 1 1 1 in decimal
I6 ........ I1
(all inputs activated, situation 1)
FE20 CRC character
----------------------------------------------------------------- Pag Nº 5

FUNCTION 5 Close/Open one relay (Force single coil).

INQUIRY 63 05 00 65 FF 00 94 67

63 Peripheral number, 99 in decimal


05 Function for closing/opening one relay
00 65 Relay to be activated: relay 101 (RL2)
FF 00 Connection command (FF00 = ON / 0000 = OFF)
94 67 CRC character

RESPONSE The relay 2 is activated (relay 101 from the memory map)
63 05 00 65 FF 00 94 67
--------------------------------------------------------------------------------------------------------
FUNCTION 15 Close/Open several relays (Force multiple coils).

INQUIRY 63 0F 00 64 00 08 01 EE 88 E0

63 Peripheral number, 99 in decimal


0F Function for closing/opening several relays
00 64 First relay to be activated: relay 100 (RL1)
00 08 Number of relay to act over (8 relays)
01 Bytes sent (byte count)
EE Relay R1 and R5 OFF and the rest ON: 1110 1110
(R8............R1)
88 E0 CRC character

RESPONSE Relays R2, R3, R4, R6, R7 & R8 are ON


Relays R1 & R5 are OFF .
63 0F 00 64 00 08 1D 90
--------------------------------------------------------------------------------------------------
FUNCTION 3 or 4 Read n Words.

INQUIRY 63 04 00 02 00 06 D9 8A
----------------------------------------------------------------- Pag Nº 6

00 02 First register to be read


00 06 Number of registers to be read

RESPONSE 63 04 0C 00 00 00 64 00 00 09 14 00 00 00 95 (CRC)

63 Number of the peripheral that is answering, 99 in decimal


04 Function for Words readout
0C Bytes received: 12
00 00 00 64 V1 (register 02 Hex) with a decimal value of 100 V
00 00 09 14 mA L1 in decimal 2324 mA
00 00 00 95 W L1 in decimal 149 W
----------------------------------------------------------------- Pag Nº 7

- DIRECTORY OF CVM- R8 MEMORY

*** RELAY MAP (1000) ****

1 BIT POSITIONS (RELAYS) DECIMAL


*****digital inputs.
DIGITAL INPUTS 1 - 18
FUTURE INPUTS 19 - 39
-----------------------------------------------------------------------------------------------
***** Key-press relays (only for CVM-R8D).
<ENTER> KEY STATUS 60
<LEFT ARROW> 61
<CLEAR> 62
<UP KEY> 63
--------------------------------------------------------------------------------------------------
***** Time base relays
PULSE RELAY 10 ms 80
100 ms 81
500 ms 82
1s 83
10 s 84
30 s 85
--------------------------------------------------------------------------------------------------
***** Signaling relays
FLAG OF MEASUREMENT UPDATE. MANUAL ERASE 91
BATTERY READY 92
TIME-OUT OF CVM COMMUNICATIONS 93
DIVISION BY ZERO ERROR 94
MATHEMATICAL OVERFLOW 95
IN LOGICAL BATTERY 96
ARITHMETIC 97
SUBROUTINES 98
--------------------------------------------------------------------------------------------------
----------------------------------------------------------------- Pag Nº 8

***** Relay of first program scan


RELAY OF FIRST SCAN 99
--------------------------------------------------------------------------------------------------
***** Digital outputs
DIGITAL OUTPUTS 100 –
117
OTHER FUTURE OUTPUTS 118 –
149

--------------------------------------------------------------------------------------------------
***** Relay of counting and timing end
RELAYS OF COUNTING END 150 –
199
RELAYS OF TIMING END 200 –
249
---------------------------------------------------------------------------------------------------
***** Internal relays
INTERNAL RELAYS 250 –
999
----------------------------------------------------------------- Pag Nº 9

*** LONG TYPE REGISTERS’ MAP (1000) ****

a.- PARAMETERS FROM CVMk (R8-07) : LONG TYPE REGISTERS

PARAMETER REGISTER
DECIMAL HEXADECIMAL

V1 2-3 02 - 03
mA 1 4-5 04 - 05
W1 6-7 06 - 07
varL 1 8-9 08 - 09
varC 1 10 - 11 0A - 0B
PF 1 12 - 13 0C - 0D

V2 14 - 15 0E - 1F
mA 2 16 - 17 10 - 11
W2 18 - 19 12 - 13
varL 2 20 - 21 14 - 15
varC 2 22 - 23 16 - 17
PF 2 24 - 25 18 - 19

V3 26 - 27 1A - 1B
mA 3 28 - 29 1C - 1D
W3 30 - 31 1E - 1F
varL 3 32 - 33 20 - 21
varC 3 34 - 35 22 - 23
PF 3 36 - 37 24 - 25

Vav III N 38 - 39 26 - 27
mAav III 40 - 41 28 - 29
W III 42 - 43 2A - 2B
varL III 44 - 45 2C - 2D
varC III 46 - 47 2E - 2F
PF III 48 - 49 30 - 31
Hz 50 - 51 32 - 33
VA III 52 - 53 34 -35
DECIMAL HEXADECIMAL
V 12 54 - 55 36 - 37
----------------------------------------------------------------- Pag Nº 10

V 23 56 - 57 38 - 39
V 31 58 - 59 3A - 3B
Vav III 60 - 61 3C -3D

+ Wh 64 - 65 40 - 41
+ varh L 66 - 67 42 - 43
+ varh C 68 - 69 44 - 45

Pd (Last period) 70 - 71 46 - 47

- Wh 72 - 73 48 - 49
- varh L 74 - 75 4A- 4B
- varh C 76- 77 4C - 4D
----------------------------------------------------------------- Pag Nº 11

b.- Other parameters:

PARAMETER REGISTER
DECIMAL HEXADECIMAL
***** Analog inputs / outputs
A/D INPUT 0 in points (80) 160- 161 A0- A1
CVM-R8

A/D INPUT 1 in points (81) 162- 163 A2-A3


A/D INPUT 0 processed (84) 168 - 169 A8-A9
A/D INPUT 1 processed (85) 170 - 171 AA-AB
--------------------------------------------------------------
A/D INPUT 1 in points (90) 180-181 B4-B5
A/D INPUT 2 in points (91) 182-183 B6-B7
A/D INPUT 3 in points (92) 184-185 B8-B9
A/D INPUT 4 in points (93) 186-187 BA-BB
CVM-R8A

A/D INPUT 5 in points (94) 188-189 BC-BD


A/D INPUT 6 in points (95) 190-191 BE-BF
A/D INPUT 7 in points (96) 192-193 C0-C1
A/D INPUT 8 in points (97) 194-195 C2-C3

D/A OUTPUT 1 in points (98) 196-197 C4-C5


D/A OUTPUT 2 in points (99) 198-199 C6-C7
--------------------------------------------------------------
***** Clock registers in real time
REG. OF SECONDS (100) 200 - 201 C8-C9
REG. DE MINUTES (101) 202 - 203 CA-CB
REG. DE HOURS (102) 204 - 205 CC-CD
REG. OF TIME ((hour + min) * 60) (103) 206 - 207 CE-CF
REG. OF DAY (104) 208 - 209 D0-D1
REG. DE MONTH (105) 210 - 211 D2-D3
REG. OF YEAR (106) 212 - 213 D4-D5
--------------------------------------------------------------
***** Counters and timers
COUNTERS (150 - 199) 300- 301 to 398-399
TIMERS (200 - 249) 400-401 to 498 -499
--------------------------------------------------------------
***** Internal registers
INTERNAL REG. (250 - 849) 500-501 to 1698-1699

You might also like