Difference between revisions of "Component: MIAC Basic (MIAC: Addon Modules)"
From Flowcode Help
Jump to navigationJump to searchLine 57: | Line 57: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 63: | Line 65: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===PWM_Enable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 81: | Line 84: | ||
+ | ===MIAC_Module_SetData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 129: | Line 133: | ||
+ | ===MIAC_Module_Init=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 147: | Line 152: | ||
+ | ===MIAC_Module_GetData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 165: | Line 171: | ||
+ | ===MIAC_Module_Message=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 188: | Line 195: | ||
+ | ===LED_Control=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 206: | Line 214: | ||
+ | ===MIAC_Module_PushData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 224: | Line 233: | ||
+ | ===PWM_Disable=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 242: | Line 252: | ||
+ | ===DigitalOutput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 265: | Line 276: | ||
+ | ===AnalogInput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 283: | Line 295: | ||
+ | ===Initialize=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 296: | Line 309: | ||
+ | ===PWM_SetDuty=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 319: | Line 333: | ||
+ | ===DigitalInput=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:53, 3 February 2023
Author | |
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
PWM_Enable
![]() |
PWM_Enable |
Enable the PWM on Channel 1 or 2 | |
![]() |
Channel |
PWM Channel 1 or 2 | |
![]() |
Return |
MIAC_Module_SetData
![]() |
MIAC_Module_SetData |
![]() |
Count |
![]() |
D0 |
![]() |
D1 |
![]() |
D2 |
![]() |
D3 |
![]() |
D4 |
![]() |
D5 |
![]() |
Return |
MIAC_Module_Init
![]() |
MIAC_Module_Init |
![]() |
CAN_ID |
![]() |
Return |
MIAC_Module_GetData
![]() |
MIAC_Module_GetData |
![]() |
Index |
![]() |
Return |
MIAC_Module_Message
![]() |
MIAC_Module_Message |
![]() |
CAN_ID |
![]() |
CMD_ID |
![]() |
Return |
LED_Control
![]() |
LED_Control |
Sets the indicator LED On (State=1) or Off (State=0) | |
![]() |
State |
![]() |
Return |
MIAC_Module_PushData
![]() |
MIAC_Module_PushData |
![]() |
Data |
![]() |
Return |
PWM_Disable
![]() |
PWM_Disable |
Disable the PWM on Channel 1 or 2 | |
![]() |
Channel |
PWM Channel 1 or 2 | |
![]() |
Return |
DigitalOutput
![]() |
DigitalOutput |
Set a Terminal Output to High (Value=1) or Low (Value=0) | |
![]() |
Terminal |
![]() |
Value |
![]() |
Return |
AnalogInput
![]() |
AnalogInput |
Read the ADC value of a Terminal Returns 12 bit ADC reading | |
![]() |
Terminal |
Terminal number to be read | |
![]() |
Return |
Initialize
![]() |
Initialize |
Forces a software reset on the module | |
![]() |
Return |
PWM_SetDuty
![]() |
PWM_SetDuty |
Sets the PWM Duty cycle on Channel 1 or 2 | |
![]() |
Channel |
PWM Channel 1 or 2 | |
![]() |
Duty |
Duty cycle (8 bit value) | |
![]() |
Return |
DigitalInput
![]() |
DigitalInput |
Read the value of a terminal | |
![]() |
Terminal |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Module Type |
![]() |
Module Address |
![]() |
PWM |
![]() |
Period Overflow |
![]() |
Prescaler |
![]() |
Frequency (KHz) |
![]() |
Period (uS) |