Author Topic: INTRDEF command  (Read 12131 times)

Steve Taylor

  • Guest
INTRDEF command
« on: October 01, 2003, 09:31:56 AM »
I need to verify how to use the INTRDEF command. I need to monitor Channel number 3, I want this to be an emergency stop input. In the initialization custom function I have a line as follows:

INTRDEF 3,2,0

Does this mean that if input 3 drops the program will execute the custom function program (2) once. Is there an easy way halt all program execution, this Input is an emergency halt switch input.

Thanks

Steve Taylor
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: INTRDEF command
« Reply #1 on: October 01, 2003, 12:06:46 PM »
Note that Interrupt channel #3 corresponds to digital input #6.

INTRDEF 3,2,0 means function #2 will be executed once when input #6 goes from ON to OFF (falling edge).

To pause the whole program, the easiest way is to execute the PAUSE command. But the only way to reset the PLC is to turn OFF the power and ON again, or you have to go to the "On-line monitoring" screen to click on the "Pause" button to clear it.

Another way is to execute the RESET command which will reset the PLC back to its original state when power is first applied to the PLC.
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS