basic212 Posted October 17, 2006 Report Posted October 17, 2006 (edited) hello, i am learning S5 .. and i have this obstacle called the parameter name .. what it is used for?? it goes like this .. Wandlung aller Zeit- und Zaehlervariablen von Hex in BCD ====================================== [1 NAME: TRANSFER C DB 22 L DW 51 ;increase pointers by 1 I 1 T DW 51 ;-------------------------------- L DW 51 ;restrict by 44 words L KH 002C >F JC =M001 ;-------------------------------- DO DW 51 ;data-word-content in DW 52 L DW 0 T DW 52 ;-------------------------------- JU FB 241 ;change dual in BCD NAME: COD:16 DUAL: DW 52 SBCD: F 250.0 BCD2: DR 250 BCD1: DW 53 ;-------------------------------- L DW 51 ;Transfer Datenwort-Nummer C DB 23 ;in DB 23 T DW 51 ;-------------------------------- C DB 22 ;transfer data-word-content BCD L DW 53 ;in DB 23 C DB 23 T DW 53 ;-------------------------------- L DW 53 ;transfer content into affiliated DO DW 51 ;data-word T DW 0 BEU ;-------------------------------- M001: L KH 0000 ;pointers on 0 places T DW 51 BE ] ------------------------------------------------------------------------------------------------ Anlauf nach Spannung Ein ================================================= Structuring lifting-work [1 JU FB 169 NAME: STRU.WEG BGAD: KF +128 KANR: KF +1 DBNR: KF +10 AFL : KF +1 IMP : KF +10 DIG1: KM 00000000 00000000 DIG2: KM 00000000 00000000 PRA1: KM 00000000 00000000 PRA2: KM 00000000 00000000 PAFE: FY 164 *** ] [2 structurings undercarriage JU FB 169 NAME: STRU.WEG BGAD: KF +128 KANR: KF +2 DBNR: KF +11 AFL : KF +1 IMP : KF +10 DIG1: KM 00000000 00000000 DIG2: KM 00000000 00000000 PRA1: KM 00000000 00000000 PRA2: KM 00000000 00000000 PAFE: FY 165 *** ] [3 ARCNET initializes JU FB 200 NAME: ARCINIT *** ] [4 Eichmerker places O F 73.1 ON F 73.1 S F 73.1 *** ] [5 BLOCK END STL BE ] -------------------------------------------------------------------------------------------------------------- in specific .. 1] what that means "NAME: STRU.WEG" is it decleration for structure or it is just comment? 2] for "BGAD: KF +128" Or "KANR: KF +2" as an example; is this are the varibles in that stucture?? .. so if it is like this how can i use them? it is found on the S5-100 manual 7.3.5 function blocks section [page 136] thanks for your patience, and i appologize for my long message, ps; i dont know german :) thanks you all, byee Edited October 17, 2006 by basic212 Quote
sps-concept Posted December 28, 2006 Report Posted December 28, 2006 hello! 1] what that means "NAME: STRU.WEG" is it decleration for structure or it is just comment? 2] for "BGAD: KF +128" Or "KANR: KF +2" as an example; is this are the varibles in that stucture?? .. so if it is like this how can i use them? JU FB 169 NAME: STRU.WEG -> its a call of another FB (FB169) BGAD: KF +128 KANR: KF +1 -> the parameters für the FB169 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.