S7-300 S7-400语句表(STL)编程手册151-200

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

10-1010.7CALLFCnSTLEditornFCFCRLOINOUTIN_OUTINOUTIN_OUTMABMCR10-11BRCC1CC0OVOSORSTARLO/FC----001-0FC6CALLFC6NOOFTOOLTIMEOUTFOUNDERROR:=MW100:=MW110:=Q0.1:=Q100.010-1210.8CALLSFBn1DBn2SFBSFBRLOINOUTIN_OUTDB1DBW2INOUTIN_OUTMABMCR10-13BRCC1CC0OVOSORSTARLO/FC----001-0CALLSFB4DB4IN:PT:Q:ET:I0.1T#20sM0.0MW10SFB4DB410-1410.9CALLSFCnSTLEditornSFCSFCRLOINOUTIN_OUTINOUTIN_OUTMABMCRBRCC1CC0OVOSORSTARLO/FC----001-0SFCSTLCALLSFC43//SFC4310-1510.10CALL#BRCC1CC0OVOSORSTARLO/FC----00xxx10.11SIMATIC•CPUStandardLibrary•10-1610.12CCCCRLO=1FCFBCCCALLMABMCRBRCC1CC0OVOSORSTARLO/FC----00110STLAI2.0CCFC6AM3.0//I2.0//I2.01FC6//I2.0=1I2.0=0AI2.0CALLFBSFBCCProgramEditorUCCCCALL10-1710.13UCUCFCSFCUCCALLMABMCRBRCC1CC0OVOSORSTARLO/FC----001-01STLUCFC6//FC62STLUCSFC43//SFC43CALLFBSFBUCProgramEditorUCCCCALL10-1810.14MCRMCRMCRMCRMCR•=•S•R•TTTMCR0T0SR=0MCRMCRMCR=SRTTT0000110-19MCR(-MCR)MCR–MCRMCR1881MCRMCR(RLOMCR)MCR1MCR()MCRMCR(8MCR)MCRMCRFMCRA–MCRMCRD–MCRMCRAMCRDMCRAMCRDMCRMCRA-MCRDMCRMCRAFCFBMCR10-2010.15MCRMCRA•MCRMCR()MCRT=0•MCR(RLO=0MCRPLCSTOPVAR_TEMPPLCSTOP•STRUCTUDTARRAYSTRINGFC•2IN_OUTSTRUCTUDTARRAYSTRINGFB•28180.0•2BLOCK_DBDB0CPUSTOPT0C0FC0FB0TIMERCOUNTERBLOCK_FCBLOCK_FB•LAD/FBD•FBDTRLO=0MCR1.MCRD2.MCRA10-2110.16MCR(RLOMCRMCRMCRMCR(MCR(MCRRLOMCRMCRMCRMCR()MCRMCR()MCRRLO=1MCRMCRMCRRLO=0MCRMCRMCRMCRMCR=SRTTT00001MCR()MCR88MCR(MCRMCRF10-22BRCC1CC0OVOSORSTARLO/FC-----01-0STLMCRAAI1.0MCR(AI4.0=Q8.0LMW20TQW10)MCRMCRDAI1.1=Q8.1//MCR//RLOMCRMCRRLO=1I1.0=1MCRRLO=0I1.0=0MCR//MCRQ8.00I4.0//MCR0QW10//MCR//MCR//MCRMCR10-2310.17)MCRMCRMCR)MCR)MCRMCRMCRMCRMCR1MCR()MCR)MCRMCRMCRFBRCC1CC0OVOSORSTARLO/FC-----01-0STLMCRAAI1.0MCR(AI4.0=Q8.0LMW20TQW10)MCRMCRDAI1.1=Q8.1//MCR//RLOMCRMCRRLO=1I1.0=1MCRRLO=0I1.0=0MCR//MCRQ8.00I4.0//MCR0QW10//MCR//MCR//MCRMCR10-2410.18MCRAMCRMCRMCRAMCRAMCRMCRAMCRDMCRAMCRDMCRBRCC1CC0OVOSORSTARLO/FC---------STLMCRAAI1.0MCR(AI4.0=Q8.0LMW20TQW10)MCRMCRDAI1.1=Q8.1//MCR//RLOMCRMCRRLO=1I1.0=1MCRRLO=0I1.0=0MCR//MCRQ8.00I4.0//MCR0QW10//MCR//MCR//MCRMCR10-2510.19MCRDMCRMCRMCRDMCRDMCRMCRDMCRAMCRAMCRDMCRBRCC1CC0OVOSORSTARLO/FC---------STLMCRAAI1.0MCR(AI4.0=Q8.0LMW20TQW10)MCRMCRDAI1.1=Q8.1//MCR//RLOMCRMCRRLO=1I1.0=1MCRRLO=0I1.0=0MCR//MCRQ8.00I4.0//MCR0QW10//MCR//MCR//MCRMCR10-2611-11111.111.1.11CPU2233241624201CC1CC0OVCC1•SSI16•SSD32•SLW16•SRW16•SLD32•SRD3211-211.1.2SSI16SSISSI015SSI115CC12SSI0–150CC0OV00NOPSSI20–25516ACCU1=16#0000CC1=0ACCU1=16#FFFFCC1=10CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0SSI601011111011001001001110100111011SSI6010111110110010011111110011101001STLLMW4SRW6TMW8//1//16//MW811-32STLL+3LMW20SRWJPNEXT//+31//12MW201//2=13//CC1=1NEXT11.1.3SSD32SSDSSD032SSD1CC12SSD0–320CC0OV00NOPSSD20–25532ACCU1=32#00000000CC1=0ACCU1=32#FFFFFFFFCC1=10CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----11-41131..........1615..........0SSD710001111011001000101110100111011SSD7111111110001111011001000101110101STLLMD4SSD7TMD8//1//17//MD82STLL+3LMD20SSDJPNEXT//+31//12MD201//2=13//CC1=1NEXT11-511.1.4SLW16SLWSLW015SLW10CC12SLW0–150CC0OV00NOPSLW20–25516ACCU1-L=0CC1=0CC0=0OV=016CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0SLW501011111011001000101110100111011SLW5010111110110010010100111011000001STLLMW4SLW5TMW8//1//15//MW811-62STLL+3LMW20SLWJPNEXT//+31//12MW201//2=13//CC1=1NEXT11.1.5SRW16SRWSRW015SRW10CC12SRW0–150CC0OV00NOPSRW20–25516ACCU1-L=0CC1=0CC0=0OV=016CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----11-71131..........1615..........0SRW601011111011001000101110100111011SRW6010111110110010000000001011101001STLLMW4SRW6TMW8//1//16//MW82STLL+3LMW20SRWSPPNEXT//+31//12MW201//2=13//CC1=1NEXT11.1.6SLD32SLDSLD032SLD10CC12SLD0–320CC0OV00NOP11-8SLD20–25532ACCU1-L=0CC1=0CC0=0OV=032CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0SLD501011111011001000101110100111011SLD5111011001000101110100111011000001STLLMD4SLD5TMD8//1//15//MD82STLL+3LMD20SLDJPNEXT//+31//12MD201//2=13//CC1=1NEXT11.1.7SRD32SRDSRD03211-9SRD10CC12SRD0–320CC0OV00NOPSRD20–25532ACCU1-L=0CC1=0CC0=0OV=032CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0SRD701011111011001000101110100111011SRD7000000001011111011001000101110101STLLMD4SRD7TMD8//1//17//MD82STLL+3LMD20SRDJPNEXT//+31//12MD201//2=13//CC1=1NEXT11-1011.211.2.11CPU14.12CC1CC00•RLD32•RRD32•RLDACC1132•RRDACC113211.2.2RLD32RLDRLD03211-11RLD11CC12RLD0–320CC0OV00NOPRLD20–25520CC0OV00NOPBRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0RLD401011111011001000101110100111011RLD4111101100100010111010011101101011STLLMD2RLD4TMD8//1//14//MD82STLL+3LMD20RLDJPNEXT//+31//12MD201//2=13//CC1=1NEXT11-1211.2.3RRD32RRDRRD032RRD11CC12RRD0–320CC0OV00NOPRRD20–255200BRCC1CC0OVOSORSTARLO/FC-xxx-----1131..........1615..........0RRD401011111011001000101110100111011RRD4101101011111011001000101110100111STLLMD2RRD4TMD8//1//14//MD811-132STLL+3LMD20RRDJPNEXT//+31//12MD201//2=13//CC1=1NEXT11.2.4RLDACC1132RLDA1CC11CC0OV0BRCC1CC0

1 / 50
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功