Component: MIAC Basic (MIAC: Addon Modules)
From Flowcode Help
(Redirected from Component: ID 8c6ad2c7 f4a7 4584 a376 ec7fed05e5d3)
Jump to navigationJump to searchAuthor | |
Version | 1.0 |
Category | MIAC: Addon Modules |
Contents
MIAC Basic component
Basic Addon expansion module for MIAC System
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ma_basic.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ma_basic.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AnalogInput
AnalogInput | |
Read the ADC value of a Terminal Returns 12 bit ADC reading | |
- BYTE | Terminal |
Terminal number to be read | |
- UINT | Return |
DigitalInput
DigitalInput | |
Read the value of a terminal | |
- BYTE | Terminal |
- BYTE | Return |
DigitalOutput
DigitalOutput | |
Set a Terminal Output to High (Value=1) or Low (Value=0) | |
- BYTE | Terminal |
- BYTE | Value |
- BYTE | Return |
Initialize
Initialize | |
Forces a software reset on the module | |
- VOID | Return |
LED_Control
LED_Control | |
Sets the indicator LED On (State=1) or Off (State=0) | |
- BYTE | State |
- VOID | Return |
MIAC_Module_GetData
MIAC_Module_GetData | |
- BYTE | Index |
- BYTE | Return |
MIAC_Module_Init
MIAC_Module_Init | |
- UINT | CAN_ID |
- VOID | Return |
MIAC_Module_Message
MIAC_Module_Message | |
- UINT | CAN_ID |
- UINT | CMD_ID |
- BYTE | Return |
MIAC_Module_PushData
MIAC_Module_PushData | |
- BYTE | Data |
- VOID | Return |
MIAC_Module_SetData
MIAC_Module_SetData | |
- BYTE | Count |
- BYTE | D0 |
- BYTE | D1 |
- BYTE | D2 |
- BYTE | D3 |
- BYTE | D4 |
- BYTE | D5 |
- VOID | Return |
PWM_Disable
PWM_Disable | |
Disable the PWM on Channel 1 or 2 | |
- BYTE | Channel |
PWM Channel 1 or 2 | |
- VOID | Return |
PWM_Enable
PWM_Enable | |
Enable the PWM on Channel 1 or 2 | |
- BYTE | Channel |
PWM Channel 1 or 2 | |
- VOID | Return |
PWM_SetDuty
PWM_SetDuty | |
Sets the PWM Duty cycle on Channel 1 or 2 | |
- BYTE | Channel |
PWM Channel 1 or 2 | |
- BYTE | Duty |
Duty cycle (8 bit value) | |
- VOID | Return |
Property reference
Properties | |
Module Type | |
Module Address | |
PWM | |
Period Overflow | |
Prescaler | |
Frequency (KHz) | |
Period (uS) | |