Chapter 4 Serial communication Manual VIPA System 200V4-2 HB97E - CPU - RE_21x-2BS03 - Rev. 15/16Fast introductionThe CPU 21x-2BS03 provide serial interfacing facilities between theprocesses of different source and destination systems. The CPU has got 2serial RS232 interfaces.The communication happens via handling blocks that are stored in the CPUas library.The CPU supports the ASCII, STX/ETX, 3964(R) and RK512 protocols.For the parameter transfer to the communication processor (CP), you haveto execute SEND (SFC 230) with order no. 201 during runtime. For this youstore the parameters in a DB where the structure depends on the wantedprotocol.To activate the parameters, you execute a RESET (SFC 234) with orderno. 0 after the SEND.Note!Please regard that the commands SEND, RECEIVE, FETCH and RESETrequire a preceding "RLO"=1 (result of logic operation) otherwise they arenot executed.The internal CP of the CPU 21x-2BS03 is directly connected to the CPUpart via a Dual-Port-RAM, also called "page frame". This page frame isavailable at the CPU section as standard CP interface. The data transferhappens via the standard handling blocks (SEND, RECEIVE and FETCH).The communication via the according protocols is controlled by connectioncommands that are programmed in the user application.The following SFCs are used:SFC Name DescriptionSFC 230 SEND Send via page frame (page frame comm.)SFC 231 RECEIVE Receive via page frame (page frame comm.)SFC 232 FETCH Fetch via page frame (page frame comm.)SFC 233 CONTROL Control for page frame communicationSFC 234 RESET Reset for page frame communicationSFC 235 SYNCHRON Synchron for page frame communicationSFC 236 SEND_ALL Send_All via page frame (page frame comm.)SFC 237 RECV_ALL Receive_All via page frame (page frame com.)GeneralProtocolsParameterizationCommunication