Figure 5-13 motor rotation information transmit – FUJITSU CAN-Motor Board MB91F267N User Manual
Page 102

AN07-00180-3E
- 102 -
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.
Figure 5-13 Motor rotation information transmit
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.
Figure 5-14 Temperature sensor information transmit
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);
}
}
←Creation of a transmit
message
←CAN transmit API
void canSendTask02(void)
{
if (gTempMeasureFlag == TEMP_MEASURE_ON)
/* Measure Enable */
{
/* Calc Send Data */
calcCanSendData(CAN_TEMP_INFO_ID, gCanSendBuf02);
/* Send Data */
canSendData(CAN_TEMP_INFO_MSG_NO, 8, gCanSendBuf02);
}
}
←Creation of a transmit
message
←CAN transmit API