Author Topic: dcusfn problem  (Read 5915 times)

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
dcusfn problem
« on: December 07, 2008, 08:21:54 PM »
Hi
I am using a t100md 888.
I try to toggle a led at output1 every time I press a button once BUT not press and hold the button
I use DCUSFN method , but the simulator says COMPILATION FAILURE "  coil TOGGLE_LEDV not valid here"

My program is as follow:

RUN                                      TOGGLE_LED
||----------------------------------(dDIFU)


IN TOGGLE_LED custom function, I write :
TOGGLEIO OUT1

can you pls tell me why?
Thanks

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3171
    • View Profile
    • Internet Programmable PLCs
Re:dcusfn problem
« Reply #1 on: December 07, 2008, 11:31:35 PM »
You have to define "OUT1" in the "Output" table. "OUT1" is just a label name (does not automically means output #1) and the compiler doesn't know which I/O element you are referring to.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

kenobe

  • Jr. Member
  • Posts: 66
  • I'm a llama!
    • View Profile
Re:dcusfn problem
« Reply #2 on: December 08, 2008, 08:03:07 PM »
Thanks