Manual VIPA System 200V
Chapter 6 CP 240 - M-Bus
HB97E - CP - Rev. 11/30
6-7
For the deployment of the CP 240 together with a System 200V CPU VIPA
offers you a series of standard handling blocks that provide the software
handshake comfortable and easy.
At deployment of the CP 240 without handling blocks, the functionality is
elucidated with an example of data send and receive.
For example, a telegram with 30Byte length is to send. Please regard that
the CP 240 takes the 1
st
byte of the telegram as baud rate. The CPU writes
the first 12Byte user data of the telegram into the Bytes 4 to 15. Byte 2/3
contain the telegram length, i.e. "30". The CP 240 receives the data via the
back plane bus and copies the 12Byte user data into the send buffer. For
the acknowledgement of the telegram the CP 240 writes the value "30"
back to Byte 2/3 (length of the telegram).
At reception of the "30", the CPU can send further 12Byte user data to Byte
4 to 15 and the rest length of the telegram ("18" Byte) to Byte 2/3 to the
CP 240. Again, this stores the user data in the send buffer and sends back
the length information ("18") in Byte 2/3 to the CPU.
The CPU receives the "18" and sends the remaining 6Byte user data in the
Bytes 4 to 9 and the according rest length ("6") in Byte 2/3 to the CP 240.
The user data is stored in the send buffer and the value "6" is send back to
the CPU via Byte 2/3.
The CPU receives the "6" and sends back a "0" via Byte 2/3. The CP 240
now initializes the sending of the telegram via the M-Bus interface. After
data transfer is completed, the CP 240 sends back a "0" to the CPU via
Byte 2/3.
At reception of the "0", the CPU is able to send a new telegram to the
CP 240.
For example, the CP 240 received a telegram with 18Byte user data via M-
Bus. Out of this telegram the first 11Byte user data and the prefixed
respond byte are taken over into the Bytes 4 to 15 of the receive buffer and
the length of the telegram (i.e. "18") into Byte 0/1. The data is transferred
to the CPU via the back plane bus. The CPU stores the 12Byte user data
and sends back the length value "18" to the CP 240.
At reception of the "18", the CP 240 writes the remaining 7Byte user data
into Byte 4 to 10 of the receive buffer and the length ("7") of the transferred
user data into Byte 0/1. The CPU stores the user data and announces back
to the CP 240 the value "7" into Byte 0/1.
At reception of the "7", the CP 240 sends back the value "0" into Byte 0/1,
which means telegram complete, to the CPU. The CPU responds a "0" into
Byte 0/1 to the CP 240.
Receiving "0" the CP 240 may send another telegram to the CPU.
Software
handshake
Example
SEND data
Example
RECEIVE data
Содержание CP 240 RS232
Страница 1: ...Manual VIPA System 200V CP Order No VIPA HB97E_CP Rev 11 30...
Страница 2: ...L...
Страница 14: ...Chapter 1 Basics Manual VIPA System 200V 1 6 HB97E CP Rev 11 30...
Страница 126: ...Chapter 5 CP 240 EnOcean Manual VIPA System 200V 5 32 HB97E CP Rev 11 30...
Страница 144: ...Chapter 6 CP 240 M Bus Manual VIPA System 200V 6 18 HB97E CP Rev 11 30...
Страница 148: ...Index Manual VIPA System 200V A 4 HB97E CP Rev 11 30 M Stich...