7.5 Communication
7.5.1 FC/SFC 217 - SER_SND - Send to PtP
This block sends data via the serial interface. The repeated call of the FC/SFC 217
SER_SND delivers a return value for 3964R, USS and Modbus via RETVAL that con-
tains, among other things, recent information about the acknowledgement of the partner
station. The protocols USS and Modbus require to evaluate the receipt telegram by
calling the FC/SFC 218 SER_RCV after SER_SND.
7.5.2 FC/SFC 218 - SER_RCV - Receive from PtP
This block receives data via the serial interface. Using the FC/SFC 218 SER_RCV after
SER_SND with the protocols USS and Modbus the acknowledgement telegram can be
read.
More information about the usage of these blocks may be found in the
manual "SPEED7 Operation List" from VIPA.
7.6 Protocols and procedures
The CPU supports the following protocols and procedures:
n
ASCII communication
n
STX/ETX
n
3964R
n
USS
n
Modbus
ASCII data communication is one of the simple forms of data exchange. Incoming char-
acters are transferred 1 to 1. At ASCII, with every cycle the read FC/SFC is used to store
the data that is in the buffer at request time in a parameterized receive data block. If a
telegram is spread over various cycles, the data is overwritten. There is no reception
acknowledgement. The communication procedure has to be controlled by the concerning
user application. An according Receive_ASCII FB may be found within the VIPA library in
the service area of www.vipa.com.
STX/ETX is a simple protocol with start and end ID, where STX stands for
S
tart of
T
e
x
t
and ETX for
E
nd of
T
e
x
t.
n
Any data transferred from the periphery must be preceded by a Start followed by the
data characters and the end character. Depending of the byte width the following
ASCII characters can be transferred: 5bit: not allowed: 6bit: 20...3Fh, 7bit: 20...7Fh,
8bit: 20...FFh.
n
The effective data, which includes all the characters between Start and End are trans-
ferred to the CPU when the End has been received.
n
When data is send from the CPU to a peripheral device, any user data is handed to
the FC/SFC 217 (SER_SND) and is transferred with added Start- and End-ID to the
communication partner.
n
You may work with 1, 2 or no Start- and with 1, 2 or no End-ID.
n
If no End-ID is defined, all read characters are transferred to the CPU after a parame-
terizable character delay time (Timeout).
Overview
ASCII
STX/ETX
VIPA System MICRO
Option: PtP communication
Protocols and procedures
HB400 | CPU | M13-CCF0000 | en | 16-47
161
Содержание VIPA System MICRO M13-CCF0000
Страница 35: ...3 2 2 Interfaces VIPA System MICRO Hardware description Structure Interfaces HB400 CPU M13 CCF0000 en 16 47 35 ...
Страница 211: ...Appendix VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 211 ...
Страница 212: ...Content A System specific event IDs B Integrated blocks VIPA System MICRO Appendix HB400 CPU M13 CCF0000 en 16 47 212 ...