9/19/2010 1:14 PM | |
Joined: 7/28/2010 Last visit: 8/31/2024 Posts: 184 Rating: (11) |
Chittaranjan, If you open "Standard Library" under Simatic S7, you will see "S5-S7 converting Blocks". Under "S5-S7 converting Blocks", you will find FC100 to FC107 which can be used for converting analog signals. These functions have the same input andoutput as your S5 block. Regards, Behnam www.sigmaprocess.ca |
9/19/2010 10:16 PM | |
Joined: 7/28/2010 Last visit: 8/31/2024 Posts: 184 Rating: (11) |
Chittaranjan, I have attacheda project with OB1 and FC100 to F107 functions. I have called FC100 in OB1 and passed the parameters to FC100 like your S5 plc code. Regards, Behnam www.sigmaprocess.ca AttachmentS5_to_s7.zip (548 Downloads) |
9/24/2010 12:49 PM | |
Joined: 7/28/2010 Last visit: 8/31/2024 Posts: 184 Rating: (11) |
Chittaranjan, Take a look at the help for the FC107 in S7. KD=22Fixed point format bipolar with nominal range -2048 to +2047 KD=23Value representation bipolar with nominal range -2048 to +2047 KD=24Fixed point format unipolar with nominal range 0 to +4095 KD=25Fixed point format unipolar with nominal range +512 to 2559 Regards, Behnam www.sigmaprocess.ca |
9/26/2010 8:54 PM | |
Posts: 14 Rating: (0) |
Thanks for your reply. I had gone through FC-107 [FC1050] help manual and below attachment document.It was written like this. A process image of the S5 I/O areas P/Q/IM3/IM4 is made in the S7 I/O area. You must assign the I/O area in the configuration table. You must also match the address in the BG parameter (byte 2). What is the value in KNKD and setting in S7 hardware configuration so-that there will not any compile error!!! Modified S7 program: FUNCTION FC 143 : VOID VAR_TEMP lok_kcpar : array [0..1] of WORD; END_VAR BEGIN NETWORK OPN DB 80; NETWORK L 'P '; T lok_kcpar [0]; CALL FC 1050 (BG :=W#16#80 KNKD := OGR :=16 UGR :=0 EINZ:=M0.0 XA :=DBW20 _FB :=M3.0 BU :=M3.1 TBIT:=M3.2); Thanks in advance. AttachmentIm462-2,__IM314.pdf (455 Downloads) |
9/26/2010 9:31 PM | |
Joined: 7/28/2010 Last visit: 8/31/2024 Posts: 184 Rating: (11) |
Chittaranjan, I gave you the KNKD numbers which you can pick from:22, 23, 24, or 25. Based on whether your inputis bipolar or unipolar you have to select the right number from one of the 4 options. Regards, Behnam www.sigmaprocess.ca |
9/28/2010 3:56 AM | |
Posts: 14 Rating: (0) |
Thanks for your reply.I had tried a lot. It was showing syntax error. Please give me any example of above code ? Regards chittaranjan sahu |
9/28/2010 12:53 PM | |
Joined: 7/28/2010 Last visit: 8/31/2024 Posts: 184 Rating: (11) |
Hi I have added the FC107 and set the parameters and there was no syntax error. I have attached the plc code. Regards, Behnam www.sigmaprocess.ca AttachmentFc107.zip (440 Downloads) |
Follow us on