APPENDIX A — VCL FUNCTIONS
pg. 129
Curtis Model 1351 – December 2018
Function Name
new/unique to 1351 = (
✔
)
Arguments
Short Comment
Description
Get_Fault_Count
1
Get_Fault_Type
1
Get_Fault_CAN_Id
1
Get_Flash_Code
1
Get_Parameter_Min_Raw
1
Gets the minimum raw value of an
input parameter.
Gets the minimum raw value of an input
parameter.
Get_Parameter_Max_Raw
1
Gets the maximum raw value of an
input parameter.
Gets the maximum raw value of an input
parameter.
Get_Parameter_Min_
Display
1
Gets the minimum display value of
an input parameter.
Gets the minimum display value of an input
parameter.
Get_Parameter_Max_
Display
1
Gets the maximum display value of
an input parameter.
Gets the maximum display value of an input
parameter.
Get_Parameter_Exponent
1
Gets the exponent display value of
an input parameter.
Gets the exponent display value of an input
parameter.
Get_Parameter_Default
1
Gets the raw default of the
parameter
Gets the raw default of the parameter
Get_Floating_Point_Scaled
2
Sets a floating point parameter,
multiplied by a scale factor
Gets a floating point parameter, multiplied by a
scale factor
Set_Floating_Point_Scaled
3
Sets a floating point parameter,
multiplied by a scale factor
Sets a floating point parameter, multiplied by a
scale factor
Get_Diagnostic_Timer
0
Returns the value of the system
timer used for fault first time and
fault last time.
Get_Master_Timer
0
Returns the value of the master
timer, which is total key on time.
Clear_Diagnostic_Timer
0
Clear the diagnostic history Timer
Fault_Active
1
Check if a fault is currently active
in the controller
This function checks if a fault is currently active
in the controller
Put_Driver (
✔
)
2
(Driver, Value)
Modified function to set a driver command.
0-1000 = 0 to 100.0%
reset_pulse_counter (
✔
)
1
(HS_NO)
Rest the high speed digital input counter
Control_External_Power (
✔
)
2
(5V_Control, 12V_Control)
Enable/disable the external power supplies
setup_canopen_transmit_
mailbox (
✔
)
4
(Handle,Message_Type,Mode_
ID,Method)
Setup a CANopen compliant mailbox to transmit
messages
define_canopen_transmit_
data (
✔
)
4
(Handele,Data_Source,Start_
Bit,Num_of_Bits)
Define the data that goes into a CANopen transmit
mailbox
setup_canopen_receive_
mailbox (
✔
)
5
(Handle,Message_Type,Node_
ID,Mask,Handshake)
Setup a CANopen compliant mailbox to receive
messages
setup_rx_mailbox_auto_
reply (
✔
)
2
(Handle1, Handle2)
Use to attach a transmit mailbox to replay
automatically when a message is received.
Optional
setup_rx_mailbox_timeout
(
✔
)
3
(Handle, Start_Timeout,Cycle_
Timeout)
Setup a cyclic timeout that will set a fault if the
receive mailbox is not “filled” in time.
define_canopen_receive_
data (
✔
)
4
(Handle, Data_Source, Start_Bit,
Number_Of_Bits)
Define the data that goes into a CANopen receive
mailbox