Internet PLC Forum

General => Technical support => Topic started by: kenobe on December 07, 2008, 08:21:54 PM

Title: dcusfn problem
Post by: kenobe 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
Title: Re:dcusfn problem
Post by: support 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.
Title: Re:dcusfn problem
Post by: kenobe on December 08, 2008, 08:03:07 PM
Thanks