Component: MIAC (PIC) CAN Slave (MIAC: Addon Modules)
From Flowcode Help
Jump to navigationJump to search| Author | Matrix Ltd | 
| Version | 1.4 | 
| Category | MIAC: Addon Modules | 
Contents
MIAC (PIC) CAN Slave component
MIAC Slave for MIAC System. Requires Slave firmware program downloaded to a MIAC (PIC) to act as a CAN connected Slave device.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
|   | InputANALOG_10Bit | 
| Returns the 10 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
|  - BYTE | InputID | 
| The input to read from 1 to 8. | |
|  - INT | Return | 
|   | RelayOFF | 
| Turns off the requested relay given by parameter RelayID, values 1 to 4 | |
|  - BYTE | RelayID | 
| The relay to turn off. From 1 to 4. | |
|  - VOID | Return | 
|   | PrintString | 
| Prints the given character string to the display at the current cursor position and moves the cursor position. | |
|  - STRING | Str | 
| The string to send to the display. | |
|  - VOID | Return | 
|   | GetKeypad | 
| Returns the key code of the key that is pressed, otherwise if nothing is pressed then returns 255 | |
|  - BYTE | Return | 
|   | DisplayStart | 
| Initialise the display ready for use | |
|  - VOID | Return | 
|   | DisplayCommand | 
| Sends the given command to the display | |
|  - BYTE | Cmd | 
|  - VOID | Return | 
|   | PrintASCII | 
| Prints the given character to the display at the current cursor position and increments the cursor position. | |
|  - BYTE | Char | 
| ASCII code of the character to print. | |
|  - VOID | Return | 
|   | PrintNumber | 
| Prints the given number to the display starting at the current cursor position and moves the cursor position. | |
|  - INT | n | 
|  - VOID | Return | 
|   | MIAC_Module_SetData | 
|  - BYTE | Count | 
|  - BYTE | D0 | 
|  - BYTE | D1 | 
|  - BYTE | D2 | 
|  - BYTE | D3 | 
|  - BYTE | D4 | 
|  - BYTE | D5 | 
|  - VOID | Return | 
|   | MIAC_Module_Init | 
|  - UINT | CAN_ID | 
|  - VOID | Return | 
|   | MIAC_Module_GetData | 
|  - BYTE | Index | 
|  - BYTE | Return | 
|   | MIAC_Module_Message | 
|  - UINT | CAN_ID | 
|  - UINT | CMD_ID | 
|  - BYTE | Return | 
|   | DisplayClear | 
| Clears the display to white space | |
|  - VOID | Return | 
|   | MIAC_Module_WR | 
|  - UINT | CAN_ID | 
|  - UINT | CMD_ID | 
| [[File:]] - | Count | 
| [[File:]] - | Start | 
| [[File:]] - | More | 
|  - VOID | Return | 
|   | MIAC_Module_PushData | 
|  - BYTE | Data | 
|  - VOID | Return | 
|   | OutputOFF | 
| Outputs a digital low state on the output requested by parameter TransID (Outputs 1 to 4) | |
|  - BYTE | TransID | 
| 1 to 4 (Outputs A to D) | |
|  - VOID | Return | 
|   | RelayON | 
| Turns on the requested relay given by parameter RelayID, values 1 to 4 | |
|  - BYTE | RelayID | 
| The relay to turn on from 1 to 4. | |
|  - VOID | Return | 
|   | OutputON | 
| Outputs a digital high state on the output requested by parameter TransID (Outputs 1 to 4) | |
|  - BYTE | TransID | 
| 1 to 4 (Outputs A to D) | |
|  - VOID | Return | 
|   | InputDIGITAL | 
| Returns the digital state of the input requested by parameter InputID (Inputs 1 to 8) | |
|  - BYTE | InputID | 
| The input number from 1 to 8. | |
|  - BYTE | Return | 
|   | MIAC_Module_GetAck | 
|  - UINT | CAN_ID | 
|  - UINT | CMD_ID | 
|  - UINT | TimeOut | 
|  - BYTE | Return | 
|   | InputANALOG | 
| Returns the 8 bit value for the analogue input requested by parameter InputID (Inputs 1 to 8) | |
|  - BYTE | InputID | 
| The input to read from 1 to 8. | |
|  - BYTE | Return | 
Property reference
|   | Properties | 
|   | Module Type | 
|   | Module Address | 
|   | Connections | 
|   | Simulations | 


