5/26/2021 9:41 AM | |
Joined: 4/16/2021 Last visit: 2/23/2022 Posts: 33 Rating:
|
please, i have the same problem as tala and almost the same programme S5 the CPU is 944B B =UBDB U =RFLM SPB =M001 LW =PADR L KH 0001 OW L KH EEFF TNB 1 UN M 255.7 so how can you help me about the adress source and the adress destination ? and how can i find the value to transfer to PADR which is the source destination? ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 05/26/2021 12:12:47New subject after splitting |
|
5/26/2021 10:51 AM | |
Joined: 10/7/2005 Last visit: 6/3/2023 Posts: 2966 Rating:
|
Hi Hazzem
Simply follow the advice that was already given in this thread (all the answers are already there really, only thing left to do is to grab the 944 manual)
By checking the call of the FB and the value that is assigned to the PADR Parameter (which could also be a FW or DW in which case you'll need to finf out the value in it). |
Cheers |
|
This contribution was helpful to
1 thankful Users |
6/2/2021 4:02 PM | |
Joined: 4/16/2021 Last visit: 2/23/2022 Posts: 33 Rating:
|
Hello, can you explain to me these instructions from the "BEGIN" and how can i know the value transfered to the PADR because i don't find any indication that shows a transfer of value as you see, there is just loading. COFF :block_fc; // COFF WDHA :int; // WDHA MAFB :block_fc; // MAFB CHAN :int; // CHAN END_VAR VAR_OUTPUT EROR :bool; // EROR RFLM :bool; // RFLM END_VAR VAR_TEMP conv_akku1 :dword; conv_akku2 :dword; conv_stw :word; conv_ret_val :int; END_VAR BEGIN NETWORK AUF #UBDB ; U #RFLM; SPB M001; L #PADR; L W#16#1; OW; L W#16#EEFF; //CALL SFC 20 ( // SRCBLK := P#????? BYTE 1, // RET_VAL := conv_ret_val, // DSTBLK := P#????? BYTE 1 // ); // *** Erreur à la ligne 1505 (FB 208) : CALL SFC 20 a été généré, veuillez compléter la liste des paramètres. *** I will accompany this with the complete program S7 AttachmentPrg SFC.pdf (318 Downloads) |
6/3/2021 3:01 AM | |
Joined: 10/7/2005 Last visit: 6/3/2023 Posts: 2966 Rating:
|
I'm afraid to say that your problem pales in comparison to the challenge of anyone here trying to help without you making the required info available. For sure, if you were to make the S5 program available OR - bare minimum - info about the call of FB208 from OB1 and the DB that is assigned to FB208 #UBDB Parameter, someone here may be able to help you further. |
Cheers |
|
This contribution was helpful to
1 thankful Users |
6/5/2021 6:37 PM | |
Joined: 4/16/2021 Last visit: 2/23/2022 Posts: 33 Rating:
|
I found the solution thanks. |
Follow us on