EasyManua.ls Logo

VIPA System 300V - Page 153

Default Icon
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Manual VIPA System 300V Chapter 6 Deployment CPU 31x with TCP/IP
HB130E - CPU - Rev. 11/50 6-63
Both CPUs use the same PLC program.
Synchronization of the interfaces
In the start-up operating module OB 100 of the CPU the interface used on
the CP must be synchronized by means of the handler block SYNCHRON.
OB 100 verifies that the synchronization procedure was completed without
errors. If an error is detected, the error number is entered into MB 200.
OB 100:
CALL "Synchron"
SSNR:=0
BLGR:=6
PAFE:=MB200
Via the cycle OB OB1 the sending and receiving of data is controlled. The
initiation of transmission in station 1 is issued by means of a SEND of the
FC1. The partner station responses with RECEIVE (FC2). After that the
data is transmitted via SEND_ALL and received in the partner station by
means RECV_ALL.
OB 1:
CALL "RECV_ALL" //Data transfer CP to CPU
SSNR:=0
PAFE:=MB197
ANZW:=MD184 //Only at RECV_ALL ANZW
//contains the number of
//the current order
CALL "Send_All" //Data transfer CPU to CP
SSNR:=0
PAFE:=MB196
ANZW:=MD180 //Only at Send_All ANZW
//contains the number of
//the current order
CALL FC 1 //Execute Send
CALL FC 2 //Execute Receive
PLC programs
for the CPUs
OB100
Synchronization of
the interfaces
OB 1
Cycle

Table of Contents

Other manuals for VIPA System 300V

Related product manuals