Need Help! Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )


Results 1 to 14 of 14

Thread: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

  1. #1
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Hello, I would really like to try and write into one of my macros to look at a particular diagnostic input (2.4) or ladder (X002.1). Part of the macro might be { IF [2.1]=1 THEN #nnnn=0}.
    I want to cheking with macro . Please share sample.
    How can i read external signal. ?


    Can have a Macro at the Ladder or Diagnostic inputs?

    Any insight would be great, thanks!

    Similar Threads:


  2. #2
    Member
    Join Date
    Apr 2011
    Location
    USA
    Posts
    841
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Fanuc does this VIA the PMC ladder. You would take X2.1 and write to a G-coil. So you would write normally open X2.1 turning on G54.0 coils. Then the macro would look at the status of G54.0 by stating IF #1000 EQ 1 GOTO 100 where 100 would be a NET number in the macro program. Assuming you have a 16/18/21 CNC type.



  3. #3
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Quote Originally Posted by drdos View Post
    Fanuc does this VIA the PMC ladder. You would take X2.1 and write to a G-coil. So you would write normally open X2.1 turning on G54.0 coils. Then the macro would look at the status of G54.0 by stating IF #1000 EQ 1 GOTO 100 where 100 would be a NET number in the macro program. Assuming you have a 16/18/21 CNC type.
    thank you for answer


    firstly, i am not expert
    Our Mahine hyundai Fanuc 0itd;

    how can i connect X2.1 to G54.0 coil? do you have example or video link?



  4. #4
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    I found a video.
    is video same your way?


    staarting 12:00.
    please check it.



  5. #5
    Member
    Join Date
    Apr 2011
    Location
    USA
    Posts
    841
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Yes



  6. #6
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    May look at the attachment for some information.

    Attached Thumbnails Attached Thumbnails Read exernal signal with macro (  ladder (X002.1). >>  IF [2.1]=1 THEN #nnnn=0 )-interface-signals-pdf  


  7. #7
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Thank you for sharing; it s great

    Quote Originally Posted by sinha_nsit View Post
    May look at the attachment for some information.




  8. #8
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Quote Originally Posted by sinha_nsit View Post
    May look at the attachment for some information.
    Ehat is your document name ? or links?



  9. #9
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    This was from this book,

    https://www.amazon.com/Programming-u...dp/0071713328/

    Its current price is about $38 (free shipping). It usually sells for around $55, the list price being $71. Grab if before amazon increases its price again. Kindle version is a bit expensive.

    Smid has not discussed advanced macro features such as this. His book is apt for only basic knowledge of macro programming.



  10. #10
    Member
    Join Date
    Jul 2005
    Location
    Turkiye
    Posts
    54
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Quote Originally Posted by sinha_nsit View Post
    This was from this book,

    https://www.amazon.com/Programming-u...dp/0071713328/

    Its current price is about $38 (free shipping). It usually sells for around $55, the list price being $71. Grab if before amazon increases its price again. Kindle version is a bit expensive.

    Smid has not discussed advanced macro features such as this. His book is apt for only basic knowledge of macro programming.
    Thanks Mr Sinha NSIT,

    Thanks Mr.Tayfur for video



  11. #11
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Quote Originally Posted by sinha_nsit View Post
    This was from this book,

    https://www.amazon.com/Programming-u...dp/0071713328/

    Its current price is about $38 (free shipping). It usually sells for around $55, the list price being $71. Grab if before amazon increases its price again. Kindle version is a bit expensive.

    Smid has not discussed advanced macro features such as this. His book is apt for only basic knowledge of macro programming.

    thank you for your feedback MASTER Sinha

    How can i create a line in ladder on FANUC machine (with on machine keyboard, not use PC program)
    do you you have video or pics.



  12. #12
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Merhnbalar Selim

    Fanuc tezgahı kullanarak ledder diyagramına nasıl ek yapılır? bunun la ilgili örnek falan varmı? video olursa tabii süper



  13. #13
    Member
    Join Date
    Feb 2006
    Location
    india
    Posts
    1792
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    It is better to seek a professional help for ladder editing and related work. Any inadvertent mistake may prove to be too costly.



  14. #14
    Registered
    Join Date
    Sep 2017
    Location
    Turkey
    Posts
    8
    Downloads
    0
    Uploads
    0

    Default Re: Read exernal signal with macro ( ladder (X002.1). >> IF [2.1]=1 THEN #nnnn=0 )

    Quote Originally Posted by sinha_nsit View Post
    It is better to seek a professional help for ladder editing and related work. Any inadvertent mistake may prove to be too costly.
    thank you.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Read exernal signal with macro (  ladder (X002.1). >>  IF [2.1]=1 THEN #nnnn=0 )

Read exernal signal with macro (  ladder (X002.1). >>  IF [2.1]=1 THEN #nnnn=0 )