FAST_2110ms() {
Timer_Windows(CURTAIN_1_SLOT);
Timer_Windows(CURTAIN_2_SLOT);
}
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/_QfZJa6M6ag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/6f6d22eb-6fe0-4b04-a5b8-29eff101e8c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Command recap, using: - 0x01(hex) as command, Software CLOSE request (stop 4 cycles if opening) - 0x02(hex) as command, Software OPEN request (stop 4 cycles if closing) - 0x04(hex) as command, STOP request - 0x08(hex) as command, CLOSE request (stop if opening) - 0x10(hex) as command, OPEN request (stop if closing)
#define CURTAIN_SHORT_TIMEOUT 0xAB
// Define the slot in setupSouliss_SetT22(memory_map, CURTAIN_1_SLOT);
FAST_50ms() {// Read the 2 buttons for local open/closeSouliss_DigIn(IN1, Souliss_T2n_OpenCmd_Local, memory_map, CURTAIN_1_SLOT);Souliss_DigIn(IN2, Souliss_T2n_CloseCmd_Local, memory_map, CURTAIN_1_SLOT);
// Apply the logic - pay attention at the CURTAIN_SHORT_TIMEOUT parameterSouliss_Logic_T22(memory_map, CURTAIN_1_SLOT, &data_changed, CURTAIN_SHORT_TIMEOUT);
// Drive the open/close relaisSouliss_DigOut(OUT1, Souliss_T2n_Coil_Open, memory_map, CURTAIN_1_SLOT); Souliss_DigOut(OUT2, Souliss_T2n_Coil_Close, memory_map, CURTAIN_1_SLOT);}
FAST_2110ms() { Timer_Windows(CURTAIN_1_SLOT);}
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/_QfZJa6M6ag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/4d89f95b-d958-445a-b661-f061e8d2ee65%40googlegroups.com.
You are right. My curtains take 15/20 seconds to fully open/close so the timeout is a little more to ensure the full movement. The motors are protected by their force sensing system so they stop at the end of movement and few seconds late power goes off.
--
You received this message because you are subscribed to a topic in the Google Groups "souliss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/souliss/_QfZJa6M6ag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to souliss+u...@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/5a842587-cb66-406c-b355-3992a6e802eb%40googlegroups.com.