Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
24 Dec 2024 01:24
Replied by PCW on topic Timed delay

Timed delay

Category: Advanced Configuration

The error is because button-press is a signal, not a pin
Looks like you need to delete one signal as you have two
with the same function:


# Input and output configuration
net relay-2-control <= hm2_7i95.0.inmux.00.input-05 # Connect input pin 5 to signal button-press
net relay-1-control => hm2_7i95.0.ssr.00.out-01 # Connect signal relay-1-control to relay output 1
net relay-2-control => hm2_7i95.0.ssr.00.out-03 # Connect signal relay-2-control to relay output 3

# Load and configure timedelay
loadrt timedelay count=1
addf timedelay.0 servo-thread

setp timedelay.0.on-delay 1.0 # 1-second delay
setp timedelay.0.off-delay 0.0 # No off delay

# Timedelay connections
net relay-2-control => timedelay.0.in # Link button-press signal to timedelay input
net relay-1-control <= timedelay.0.out # Link timedelay output to relay-1-control

# Direct button connection to second relay
# Cant drive a signal from another signal:  net relay-2-control <= button-press # Relay 2 activates directly with button press
Displaying 20851 - 20851 out of 20851 results.
Time to create page: 0.304 seconds
Powered by Kunena Forum