Converting S5->S7 Error,RJ area

rtiger

Member
Join Date
Jan 2014
Location
TP Ho Chi Minh
Posts
14
I have some error about RJ area on Regular PID code S5->S7
Code:
FUNCTION FC 30 : VOID
  AUTHOR: _48021
  NAME: HAU_KREG  // HAU:KREG  
  VAR_INPUT
    X         :dword;     // X   
    YR        :dword;     // YR  
    YS        :dword;     // YS  
    YZ        :dword;     // YZ  
    WEX       :dword;     // W EX
    MA        :dword;     // MA  
    ME        :dword;     // ME  
    TA        :real;      // TA  
    CPDB      :block_db;  // CPDB
    RADB      :block_db;  // RADB
    SKDB      :block_db;  // SKDB
  END_VAR
  VAR_OUTPUT
    E         :dword;     // E   
    Y         :dword;     // Y   
  END_VAR
  VAR_TEMP
   conv_akku1         :dword;
   conv_akku2         :dword;
   conv_stw           :word;
  END_VAR
  BEGIN
  NETWORK
  NETWORK
       OPN #RADB ;
       L   #X;
       T   MD 200;
       L   #YR;
       T   MD 204;
       L   #YZ;
       T   MD 212;
       OPN #CPDB ;
       L   W#16#EF60;
       SLD 4;
  //      TIR 6;
  // *** Error in Line    6924  (FB 212):  Command not defined. ***
  //      L   BB 0;
  // *** Error in Line    6926  (FB 212):  Invalid operator. ***
       SLD 4;
  //      MAB
  // *** Error in Line    6929  (FB 212):  Command not defined. ***
  //      LRW -4;
  // *** Error in Line    6931  (FB 212):  Command not defined. ***
       T   DBB 3;
  NETWORK
       OPN #CPDB ;
       L   DBD 160;
       L   +0.1000000E+03;
       *R;
       T   MD 216;
       L   DBD 156;
       L   +0.1000000E+03;
       *R;
       T   MD 220;
       L   DBD 136;
       L   +0.1000000E+03;
       *R;
       T   MD 224;
       AN  DBX 269.7;
       JC  M001;
       L   -0.1000000E+01;
       L   DBD 140;
       *R;
       T   MD 252;
       JU  M002;
  M001:L   DBD 140;
       T   MD 252;
How can I fix it?
 

Similar Topics

Hello everyone, can anyone help me with covert the STL code to ladder. Iam using plc s71200. A %DB1.DBX33.7 // angel of vaccum...
Replies
2
Views
211
Hello PLCs Forum, I am in a bit of a pickle and was hoping someone could offer me some help. I have a .rss file and just need to see the ladder...
Replies
2
Views
125
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
331
Hello, did anybody know, if there exist an converting cable like the1492-CM1746-M01 (for an 1746-IB16 to an 5069-IB16), for an 1746-HSCE to an...
Replies
3
Views
393
Hello, This will be my first time converting powerflex 40's and 400's from devicenet to ethernet. I did some research, and it seems I will need...
Replies
4
Views
760
Back
Top Bottom