Contatto
MCP 4 – User's manual
DUEMMEGI
It is also possible to publish non contiguous blocks of virtual points and registers, specifying more
NETWORK
directives, up to a maximum of 8 (as total of V-Words and R-Words). For instance, the following directive
may be enclosed in the same MCP 4:
NETWORK
= (
V1
..
V16
)
NETWORK
= (
V513
..
V576
)
NETWORK
= (
V1025
..
V1056
)
NETWORK
= (
R0
..
R8
)
NETWORK
= (
R33
..
R37
)
NETWORK
= (
R50
..
R52
)
NETWORK
= (
R100
..
R100
)
NETWORK
= (
R251
..
R255
)
To publish only one register, simply specify the same value for Rstart and Rstop (see
R100
in the previous
example). Each MCP 4 acquires the information published by the other components of the same network
even if it does not contain any
NETWORK
directive; for instance, if only one MCP 4 has to send information to
the other components of the networks, but not vice-versa, then the
NETWORK
directive may be activated only
for the “master” MCP 4 controller.
Remember:
if a
NETWORK
directive has been inserted in a MCP 4, then also an
ADDRESS
directive must be insrted too
and this last one must be placed
before
any
NETWORK
directive
the Words published by a MCP 4 must be different from one to the other in order to
avoid
superimposition
up to 8
NETWORK
directive can be enabled in each MCP 4 in the network
Each MCP 4 acquires the information published by the other components of the same network even if it
does not contain any
NETWORK
directive
the data exchange mechanism here described also applies between
Contatto
MCP 4 controllers and
Domino
DFCP controller, allowing interactions between the two systems
Example:
Suppose to have installed 2 MCP 4; also suppose to have connected, to each one of them, 1 MOD8I/A, 1
MOD8R, both with address 1, 1 MOANI and 1 MOANU, both with address 2. Suppose that the application
requires to control the outputs of a bus by the input of the other one and vice-versa..
The programs to be written in the two MCP 4 controllers are:
// Program for MCP-4 1
ADDRESS
= ( 1 )
// Address of first MCP
NETWORK
= (
V1
..
V16
)
// Send 16 virtual points to the other MCP
NETWORK
= (
R0
..
R0
)
// Send 1 register to the other MCP
V1
=
I1.1
// Copy the local inputs to first 8 virtual points
V2
=
I1.2
V3
=
I1.3
V4
=
I1.4
V5
=
I1.5
V6
=
I1.6
V7
=
I1.7
V8
=
I1.8
O1.1
=
V17
// Copy the received virtual points to the outputs
O1.2
=
V18
O1.3
=
V19
O1.4
=
V20
O1.5
=
V21
O1.6
=
V22
O1.7
=
V23
O1.8
=
V24
R0
=
AI2
// Copy the analog input to first register
AO2
=
R1
// Copy the second register to analog output
// Program for MCP-4 2
ADDRESS
= ( 2 )
// Address of second MCP
NETWORK
= (
V17
..
V32
// Send 16 virtual points to the other MCP
NETWORK
= (
R1
..
R1
)
// Send 1 register to the other MCP
V17
=
I1.1
// Copy the local inputs to the virtual points to be sent
V18
=
I1.2
Page 14 of 87
Rel.: 1.2 October 2018
DUEMMEGI
s.r.l. - Via Longhena, 4 – 20139 MILANO
Tel. 02/57300377 - Fax 02/55213686 –
www.duemmegi.it