Академический Документы
Профессиональный Документы
Культура Документы
SIMATIC S5 Programmable Logic Control System demands such as operating monitoring or bus links are supported by specific modules. The exchange of data between CPU and CP is carried out by handling blocks. Handling blocks are basically Function Blocks (FB) which can be parameterized by the user.
Configuration
The CPU accesses I/O modules via SIMATIC S5 BUS, similarly data exchange is via handling blocks. Information transfer via DUAL PORT RAM of CP. CP (Interface called SSNR) would access the Dual Port Ram.
Configuration example
CP1 Interface 0 Dual Port RAM CP2 Interface 1 Dual Port RAM
SIMATIC S5 BUS
CPU
I/Os I/Os
Function Blocks
FB 120 FB 121 FB 122 FB 123 FB 124 FB 125 FB 126 FB 127 SEND RECEIVE FETCH CONTROL RESET SYNCHRON SEND A REC - A
Initializing an Interface
Each Interface must be initialised by means of SYNCHRON. This includes amongst other activities, the erasing / pre-programming of the Dual port RAM. Block can be called during warm / cold restart (OB20, OB21, OB 22)
Parameters
Parameter SSNR A-NR ANZW BLGR QTYP/ZTYP DBNR QANF/ZANF QLAE/ZLAE PAFE Type D D I D D D D D Q Data KY KY W KY KS KY KF KF BY Meaning Interface Number Job Number Condition Codeword Field Size Type of data source / Destination Data Block Number Relative Start Address Length of data Parameter assignment error
=0, always deleted by handling block when PAFE byte is written 1= error, 0 = no error
SEND FB 120
SEND SSNR A-NR ANZW QTYP DBNR QANF QLAE PAFE
SEND-A FB 126
SEND-A SSNR A-NR ANZW PAFE
RECEIVE FB 121
RECEIVE SSNR A-NR ANZW ZTYP DBNR ZANF ZLAE PAFE
REC-A FB127
REC-A SSNR A-NR ANZW PAFE
FETCH FB 122
FETCH SSNR A-NR ANZW ZTYP DBNR ZANF ZLAE PAFE
CONTROL FB123
CONTROL SSNR A-NR ANZW PAFE
RESET FB124
RESET SSNR A-NR PAFE
SYNCHRON FB125
SYNCHRON SSNR BLGR PAFE