anyKode Marilou

Getting the contacts states.

M32 GetContacts(MU8 * pContacts, int ContactsCount);
MU8 * pContacts 
[in/out] M8 table filled in by the function with the 0 or 1 values depending on
whether the sensor detects a contact or not. 
int ContactsCount 
[in] Table size in number of elements. 

The system error code MODA_EOK if no error occurred, an error (see MODA errors) otherwise.

GetContacts reads the contact/switch state of each contact sensor of the group.

The table is filled in with the contact states of the sensors present within the group. The number of elements filled in is the minimum between the size of the group and the size of the table. The 0 value indicates a lack of contact, 1 indicates one contact.

Documentation v4.7 (18/01/2015), Copyright (c) 2015 anyKode. All rights reserved.
What do you think about this topic? Send feedback!