Figure 5-13 Motor Rotation Information Transmit; Figure 5-14 Temperature Sensor Information Transmit - Fujitsu FR Family FR60 Lite User Manual

32-bit microcontroller bits pot red can motor board
Hide thumbs Also See for FR Family FR60 Lite:
Table of Contents

Advertisement

Details of motor rotation information transmit, temperature sensor information transmit, and receive
processing are as described below.
First, concerning motor rotation information transmit, as shown in "Figure 5-13 Motor rotation
information transmit", there is the canSendTask01 function around Line 577 in MAIN.C. Only when the
motor is rotating, a message sent with CAN is created and the transmit function canSendData, which is a
CAN driver API, is invoked.
void canSendTask01(void)
{
if (gMotorStartFlag == MOTOR_START)
{
/* Calc Send Data */
calcCanSendData(CAN_MT_STATUS_ID, gCanSendBuf01);
/* Send Data */
canSendData(CAN_MT_STATUS_MSG_NO, 8, gCanSendBuf01);
}
}
Concerning temperature sensor information transmit, as shown in "Figure 5-14 Temperature sensor
information transmit", there is the canSendTask02 function around Line 601 in MAIN.C. Only when a
request for temperature sensor information is made, a message sent with CAN is created and the transmit
function canSendData, which is a CAN driver API, is invoked.
void canSendTask02(void)
{
if (gTempMeasureFlag == TEMP_MEASURE_ON)
{
/* Calc Send Data */
calcCanSendData(CAN_TEMP_INFO_ID, gCanSendBuf02);
/* Send Data */
canSendData(CAN_TEMP_INFO_MSG_NO, 8, gCanSendBuf02);
}
}

Figure 5-14 Temperature sensor information transmit

Figure 5-13 Motor rotation information transmit

- 102 -
AN07-00180-3E
←Creation of a transmit
message
←CAN transmit API
/* Measure Enable */
←Creation of a transmit
message
←CAN transmit API

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f267n

Table of Contents