Jump to content
OMRON Forums

dzrong

Members
  • Posts

    187
  • Joined

  • Last visited

Posts posted by dzrong

  1. Haha,it's strange!

    It's my plc14.

     

    open plc 14

     

    p1=p1+1

    cmd"&1p p11=d6 p12=d7 p13=d8"

    p2=p2+1

     

    Ldata.coord =1;

     

    dread;

    p3=p3+1

     

    p1001=d1

    p1002=d2

    p1003=d3

    p1004=d4

    p1005=d5

    p1006=d6

    p1007=d7

    p1008=d8

    p1009=d32

     

    pread;

    p4=p4+1

    p2001=d1

    p2002=d2

    p2003=d3

    p2004=d4

    p2005=d5

    p2006=d6

    p2007=d7

    p2008=d8

    p2009=d32

    close

     

    pread.bmp

     

    Everything return to me is zero.

    It maybe have a relationship with forward program,but i'm not sure.

    Here is my code for anyone would like to check.

    usrcode.txtforward.txt

     

    Thanks for your replay!

  2. Hello Curtwilson,

     

    I want to get the tool-tip posion to display in the HMI,and i used the "pread" in the plc,it seems not work in the plc but in program.The code like this:

     

    Ldata.coord =1;

    fread;

    d32=$1ff;

    p1=d1

    p2=d2

    p3=d3

    p4=d4

    p5=d5

    p6=d6

    p7=d7

    p8=d8

     

    I can get P1..8 value when using in program.but plc can't.

    Could you give some suggestion?

     

    Thanks

  3. When i build and download all the program,output window tell me Download successful,but one error happenned:Could not upload the pp_debug.txt file from the Power Pmac.

    downloading error.bmp

    What's the possible reason could be?

     

    Thanks!

     

    Notice that:the error will happen in both 1.4.0.62 and 1.3.0.0 verion firmware.

     

  4. It seems that i didn't have updated the whole file system of PPmac CPU successfully.

    The problem still be there.

     

    So how can i make the file system of PPmac CPU(FAB NO:604020-553) as same as PPmac CPU(FAB NO:604020-557)?

     

    Thanks!

  5. It seems that the problem has a relationship with the hardware of PPmac CPU.

     

    The following three Combination works well:

    PPmac CPU(FAB NO:604020-557;firmware:1.3.0.0;Kernel:2.6.30.3) +ACC24E3 +ACC11E

    PPmac CPU(FAB NO:604020-557;firmware:1.3.0.0;Kernel:2.6.30.3) +ACC24E2A X 3 +65E +66E +67E X 2 + 36E +84E

    PPmac CPU(FAB NO:604020-553;firmware:1.3.0.0;Kernel:2.6.30.3) +ACC24E3 +ACC11E

     

    But Only this one has the problem:

    PPmac CPU(FAB NO:604020-553;firmware:1.3.0.0;Kernel:2.6.30.3) +ACC24E2A X 3 +65E +66E +67E X 2 + 36E +84E

    So the main differece will be the FAB NO,604020-557 AND 604020-553.

     

    So i backup all the files of PPmac CPU(FAB NO:604020-557) including Linux files by IDE(the size of the backup file is about 956MB),and want to restore them to the PPmac CPU(FAB NO:604020-553),but some error happenned when restoring,and i'm trying now!

     

     

     

  6. Both type of combination,but same answer even if there is no project in PPmac CPU.

    1.bmp

    Combination 1:

    IDE version is 1.4.0.62

    Firmware version is 1.3.0.0

    Kernel version is 2.6.30.3

    Combination 2:

    IDE version is 1.4.0.62

    Firmware version is 1.4.0.27

    Kernel version is 2.6.30.3

     

    Any reply would be greatly appreciated!

     

    Thanks

     

     

  7. OK, It all looks fine to me. I would say you need to upgrade to the newest firmware and IDE and see if something changes. It looks like this is an older version and that you will need to look at how the new version does the include files in usercode.h and capp.h to make the conversion.

     

    Alternatively you could simplify the system. Remove the usercode and see if the problem still happens. If so remove a different part, and so on until there is nothing to remove or you find which part causes the problem.

    How to use the serial port to check some errors had happenned in the PPmac or Linux? Maybe i can find something new!

  8. It's happenned again! The IDE can't talk to PPmac.

    IDE failed.bmp

    But the telnet is fine because i have openned it at the beginning.

     

    And someone tells me check TOP command.

     

    M command:

    TOP-M.bmp

    P command:

    TOP-P.bmp

     

    It seems no too much Gpascii application there,and Sys.WDTFault = 0. And i'm sure there is no C application talking to PPmac using telnet,only using share memory.

    How to use the serial port to check something had happenned in PPmac or Linux?

    What to do next?

     

    Thanks

     

  9. This error happenned when i used the PPmac after about one hour,when i click the "Motor1" PPmac Plot tells me "-bash:/usr/bin/gaascii:Input/output error root@192.168.0.200:/opt/ppmac#"

    gpascii input output error.bmp

    And then no new communication can be established,include telnet and windows in IDE,but the established communication windows like terminal and watch can talk to PPmac still.

     

    My IDE version is 1.4.0.62

    Firmware version is 1.3.0.0

    Kernel version is 2.6.30.3

    Because my project can not wrok on the last firmware so i have to use the old one 1.3.0.0.

    What is the reason maybe?

     

  10. I hope you are talking about PowerPMAC and not TURBO as there is no Telnet communication for Turbo.

    If you want to use telent to download the file you will have to do following....

    1.User program must be compiled for user variables. If you write the user program without using the variable names then it is fine.

    2.FTP the program to /var/ftp/userflash/temp folder.

    3.Once the telnet terminal is open then type the command at terminal

    gpascii –i

    This will download entire file to PowerPMAC.

    -i = option download the program to powerpmac memory.

    4.The key is the user program must be compiled and error free. The gpascii will return the error and abort if it cannot understand the program line.

    5. If you want to use line by line download then you may want to use rotary buffer.

    Hope it answers your question.

    Atul

     

     

    Can i do this way to download my Subroutine in my HMI if my Subroutine don't use the variable names? If not,how can i do that?

×
×
  • Create New...