User Tools

Site Tools




void eRelay (u16 eportNumber, u8 value)

eportNumber : The expansion port number of an individual port (not a port block)
value : 0 or 1 (0=Off, 1=On)

Sets eportNumber's output state on (value=1) or off (value= 0).

eRelay(60,1);     // Turns port 60 on
eRelay(60,0);     // Turns port 60 off

*Keep in mind the Expansion Relay Output Module's maximum on/off switching speed is 10 times a second (10Hz).

go MOACON home

moacon/erelay/index.txt · Last modified: 2016/04/14 11:07 (external edit)