Device: Serial Port
Class Name:
<<Device>>lsfSERIAL
Description:
Control of the Serial Communication Ports used by a sub-system.
Inheritance:
LCU Server Framework <<Device>>lsfDEVICE
Use Case diagram:
Class diagram:
Architecture:
The <<Device>> class Serial
Port is based on the VxWorks Serial I/O System for embedded
serial communication ports tyCo/1..3 and Serial communication board ISER8.
This class is the parent class of the sub-classes
- lsfRS232
- lsfRS422
- lsfRS485
specialized for these 3 Serial Communication protocols.
In addition the class lsfRS232::lsfPLC
is an abstract sub-class for PLC control; it is specialized in the
control of the 2 PLC systems used on the VLT:
- lsfRS232::lsfPLC::lsfRK512: Siemens S7 based on the protocols RK512/3964R
- lsfRS232::lsfPLC::lsfEY2400: Sauter EY2400
The public methods are:
- lsfSerialRead(): read data
from the serial port.
- lsfSerialWrite(): write data
to the serial port.
For the Siemens PLC:
- lsfRK512Fetch(): retrieve data from PLC
- lsfRK512Send(): send
command to PLC
For the Sauter PLC:
- lsfEY2400Synchro(): synchronize on PLC cycle
- lsfEY2400Presence(): checl PLC presence
- lsfEY2400Command(): send command to PLC
The serial ports are configured during the Initialization of the device according to the database attributes.
The protected attributes are:
- deviceName: name of the driver channel
(/iser0..9 or
/tyCo/1..3)
- protocol: RS protocol number (232, 422 or 485)
- baudRate: default 9600
- dataBits: default 8
- stopBits: default 1
- parity: default None
- handShake: handshake
type (default 1)
- rxMode: buffer end
condition (default 0)
- bufferLength: default 512 bytes
- multiple: flag
indicating whether the channel may be shared by different applications
The private attributes are:
- fd: associated file descriptor
- isTyCo: flag indicating
if port is a tyCo.
- isPlc: flag indicating
if device is a PLC
- plcConfig: relevant
data for PLC control
Related Packages:
- lcc: The LCU Common Software
- and the associated VLT driver iser
and VxWorks tyCo.
Issues to be Determined or Resolved: None
Last modified: Mon Sep 18 16:50:35 METDST 2000