User Tools

Site Tools

한국어

moacon:erelayblock:index

eRelayBlock

void eRelayBlock (u16 eRelayID, u8 value)

eRelayID : The module's ID (port block number) (0 through 9)
value : 0 through 255

Sets the output state of all ports in the given port block, eRelayID. value is a bit array corresponding to the 8 individual ports in the port block. If eRelayID were 1, value's bit 0 would correspond to port 10 and value's bit 7 would correspond to port 17.

eRelayBlock(1,7);    // Ports 10-12: ON, Ports 13-17 OFF
                     // 7 = b0000 0111

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

go MOACON home

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