Protocols And Procedures; Chapter 4 Serial Communication - YASKAWA VIPA System 200V Manual

Hide thumbs Also See for VIPA System 200V:
Table of Contents

Advertisement

Chapter 4 Serial communication

Protocols and Procedures

Overview
ASCII
STX/ETX
4-4
The CPU supports the following protocols and Procedures:
• ASCII communication
• STX/ETX
• 3964(R) with RK512
ASCII data communication is one of the simple forms of data exchange.
Incoming characters are transferred 1 to 1.
To ensure that messages can be divided into logical parts the 'character
delay time' (ZVZ) of the receiver must be matched by the transmitter. The
ZVZ is specified in milliseconds (ms) and it must be larger than or equal to
2ms.
On the transmitter the equivalent of the receiver's character delay time is
the 'time from reception of job ' (ZNA). These two times can be used to
establish a simple serial PLC communication path. Any transmit job is only
acknowledged with 'job completed without errors' (AFOF) when the data
was transmitted and the ZNA has expired.
If ZNA is set to 0, the send sequence has to be controlled via the user
application.
STX/ETX is a simple protocol with start and end ID, where STX stands for
Start of Text and ETX for End of Text.
The STX/ETX procedure is suitable for the transfer of ASCII characters
(20h...7Fh). It does not use block checks (BCC). Any data transferred from
the periphery must be preceded by an Start followed by the data characters
and the end character.
The effective data which includes all the characters between Start and End
are transferred to the CPU when the End has been received.
When data is send from the CPU to a peripheral device, any user data is
handed to the CPU where transferred to the communication partner.
Message structure:
STX1
STX2
You may define up to 2 start and end characters.
You may work with 1, 2 or no Start- and with 1, 2 or no End-ID. As Start-
res. End-ID all Hex values from 01h to 1Fh are permissible. Characters
above 1Fh are ignored. In the user data, characters below 20h are not
allowed and may cause errors. The number of Start- and End-IDs may be
different (1 Start, 2 End res. 2 Start, 1 End or other combinations). If no
End-ID is defined, all read characters are transferred to the CPU after a
parameterizable character delay time (Timeout).
Z1
Z2
ZVZ
HB97E - CPU - RE_21x-2BS03 - Rev. 15/16
Manual VIPA System 200V
Zn
ETX1
ETX2

Advertisement

Table of Contents
loading

Table of Contents