7/26/2013 10:52 AM | |
Posts: 28 Rating: (5) |
Have you seen this link and this? it contain explanation about FC 15 but i don't know what it is all about (is it motor or something?). But since it's something you've working on maybe you know better. regards Shaumi |
This contribution was helpful to1 thankful Users |
7/26/2013 10:55 AM | |
Joined: 4/23/2010 Last visit: 12/31/2023 Posts: 8092 Rating: (872) |
Hello Experts, Thank you every body for your support. I shall go thru the replies. Meanwhile I got nice reply from member CNC600in Sinumerik CNC automation systems product forum. Earlier I had posted my query in that forum, but since I didn't receive any reply I re-posted it here. Thanks. Mr.vipz, It does not require any cnc s/w. With simatic manager step-7 it opens. |
This contribution was helpful to1 thankful Users |
7/29/2013 11:32 AM | |
Joined: 6/24/2013 Last visit: 4/22/2024 Posts: 1588 Rating: (409) |
Hi I have had a look and block body is [I have added comments]: OPN DB 1 // Open Data Block 1 [all calls to DB... do refer to DB1] OPN DI 5 // Open Data Block 5 as DI [all calls to DI... do refer to DB5] L DIW 24 // DB5.DBW24 L #IN1 <I // Is DB5.DBW24<#IN1 JC M001 // if YES jump to M001 L B#16#0 >I // Is In1>0? JC M002 // if YES go to M002 M001: AN #IN0 BEC // If IN0=0 terminate block here! CALL FC 20 // Calls FC20 with IN0:=40 IN1:=15 IN2:=2 IN3:=0 IN4:=TRUE CALL "STP" // STOP THE PLC M002: L #IN1 DEC 1 T #TEMP19 // Temp19:=#In1-1 L DIW 108 // DB5.DBW108 *I // ACCUMULATOR1:=DB5.DBW1088*(#IN1+1); L DIW 116 +I // ACCUMULATOR1:=DB5.DBw116+DB5.DBW1088*(#IN1+1); SLD 3 // To Pointer Format LAR1 // Put in Address Register 1 L #TEMP19 L DIW 122 *I L DIW 130 +I // ACCUMULATOR1:=(#TEMP19*DB5.DBW122)+DB5.DBW130 SLD 3 // To Pointer Format LAR2 // Put in Address Register 2 POP // ACC1:=ACC2 [==#TEMP19*DB5.DBW122] L DIW 124 +I + 8 // ACC1:=(#TEMP19*DB5.DBW122)+DB5.DBW124+8 SLD 3 // To Pointer + 7 // Bit xxx.7 [xxx = (#TEMP19*DB5.DBW122)+DB5.DBW124+8) T #TEMP23 // Store in Temp23 OPN DI 8 // Opens DB8 as DI. All Calls DIxxx now do refer to DB8!! L #TEMP19 + 98 SLW 3 T #TEMP22 L DIB [#TEMP22] T LB 0 O #IN0 = #TEMP20 FP #TEMP17 JCN M003 L B#16#40 L LB 0 ==I JC M003 R #TEMP17 R #TEMP20 M003: AN #TEMP20 JC M004 A #TEMP11 JC M005 S #TEMP11 A DBX [#TEMP23] = #TEMP12 JC M006 S #TEMP15 S #TEMP18 JU M007 M005: AN DBX [#TEMP23] JC M007 M006: A #TEMP13 JC M008 AN DBX [AR2,P#0.7] JC M009 L DBW [AR1,P#0.0] AW W#16#F030 L B#16#0 <>I JC M008 JU M007 M004: AN #TEMP11 JC M007 L B#16#0 L DBD [AR1,P#0.0] <>D JC M00a A DBX [AR2,P#0.7] JC M00b JU M00c M00a: AN DBX [AR2,P#0.7] JC M00b L B#16#0 T DBD [AR1,P#0.0] M00b: A #TEMP13 JC M008 JU M007 M00c: A #TEMP12 JC M00d AN DBX [#TEMP23] JC M00d A #TEMP18 R #TEMP18 S #TEMP15 JU M008 M00d: L B#16#0 T LB 0 M007: SET R #OUT8 R #OUT7 R #OUT9 R #OUT10 JU M00e M009: A #IN2 = DBX [AR1,P#2.0] A #IN3 = DBX [AR1,P#2.2] A #IN4 = DBX [AR1,P#2.3] L #IN5 CAD T DBD [AR1,P#4.0] L B#16#0 L #IN6 <=R JC M00f NEGR AN #IN2 S DBX [AR1,P#2.1] M00f: CAD T DBD [AR1,P#8.0] SET S DBX [AR1,P#0.7] M008: O DBX [AR2,P#0.7] O #TEMP13 = #OUT8 JCN M007 A DBX [AR2,P#0.7] S #TEMP14 A DBX [AR2,P#0.6] S #TEMP13 A #TEMP13 = #OUT7 A DBX [AR2,P#0.0] = #OUT9 R #OUT7 S #TEMP13 A DBX [AR2,P#0.1] = #OUT10 R #OUT7 S #TEMP13 M00e: L LB 0 T DIB [#TEMP22] L DBB [AR2,P#3.0] It looks like block created with SCL. Put some comments to beginning of the block Hope this helps. Project with these imported attached AttachmentD_PEGARDPegard.zip (106 Downloads) |
Follow us on