12.07.2015 Views

Functions for SIMATIC S7-300 and S7-400 Acyclic ... - Jonweb FA

Functions for SIMATIC S7-300 and S7-400 Acyclic ... - Jonweb FA

Functions for SIMATIC S7-300 and S7-400 Acyclic ... - Jonweb FA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

User ManualThe example provides the following function:• H<strong>and</strong>ling of parameter requests with 2 drives via the DPV1 communication channel (1 read <strong>and</strong> 2 writerequests <strong>for</strong> MASTERDRIVES VC with CU2).The following definitions apply:• The connection parameters are in DB20 (DB "slave"), DBW0 to DBW28.• Drive 1 (MASTERDRIVES VC with CU2, communication board CBP):Station number 3Communication interface in DB 20, DBW 30 to DBW 646.• Drive 2 (MASTERDRIVES VC with CU2, communication board CBP):Station number 4Communication interface in DB 20, DBW 648 to DBW 1294.In the example, the following <strong>S7</strong> blocks are used:OB1: Cyclic programFC20: Block DPV1_RWFC100: Initiate PKW requests <strong>for</strong> slaves 1 <strong>and</strong> 2DB20: DB "slave" <strong>for</strong> slave 1 <strong>and</strong> 2 (connection parameter <strong>and</strong> communication interface <strong>for</strong> slave 1<strong>and</strong> 2)In the example, the following flags are used:MB 100: Initiation bits <strong>for</strong> PKW requests to slave 1 (MASTERDRIVES VC with CU2)M100.0: P462, change index = 1, value = 50 (ramp-up time = 5s)M100.1: value of parameter 462, read index = 1M100.2: P469, change index = 1, value = 50 (rounding HLG = 50%).MB 101:Initiation bits <strong>for</strong> PKW requests to slave 2 (MASTERDRIVES VC with CU2)M101.0: P462, change index = 1, value = 50 (ramp-up time = 5s)M101.1: value of parameter 462, read index = 1M101.2: P469, change index = 1, value = 50 (rounding HLG = 50%).26.4 Program listingOB1: CycleExample program <strong>for</strong> 2 DP slavesNetwork 1 : Initiate PKW requests <strong>for</strong> slave 1 <strong>and</strong> slave 2CALL FC 100 // Start PKW requestsNetwork 2 : Read/write data set slave 1FC20 is called once per cycle <strong>and</strong> slave. Its in<strong>for</strong>mation containsthe FC20 from DB "slave".CALL FC 20 // ***** SLAVE 1 *****DBSL:=20// DB "slave"DWSL:=0// Initial address of slave 1 data in DB "slave"Network 4 : Read/write data set slave 2FC20 is called once per cycle <strong>and</strong> slave. Its in<strong>for</strong>mation containsthe FC20 from DB "slave".CALL FC 20 // ***** SLAVE 2 *****DBSL:=20// DB "slave"DWSL:=648// Initial address of slave 2 data in DB "slave"BE<strong>SIMATIC</strong> <strong>S7</strong> PROFIBUS-DP <strong>Functions</strong>© Siemens AG 1998 All Rights ReservedE20125-C0011-S302-A2-7600 19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!