1 6
PCL-841 Series User's Manual
Example
#include "can84 1 .h"
main()
{
if (canReset (0)==0)
printf ("RESET PORT I FAIL! n");
}
Function 4
Controls the setting of the CAN port’s acceptance code, acceptance
mask, and bus timing register.
Command
canConfig (BYTEport, CAN STRUCTcan);
Argument
BYTE port, CAN_STRUCT can;
port= port number (0 or 1)
can= CAN struct pointer
Response
l=successful
0=fail
Example
#include "canB4 1.h"
main()
{
CAN_STRUCT canl, can2;
can 1.acc_code=0;
can 1. acc_mask=0xff;
can 1.bt0=0;
can 1.bt I =0x 1 c;
if (canConfig(0,canl)==0)
printf ("CAN PORT I CONFIGURE ERROR!\n");
}
Function 5
Sets a CAN port to normal mode for normal operation.
Command
canNormalRun (BYTE port);
Argument
BYTE port;
port= port number (0 or 1)
Содержание PCL-841 Series
Страница 2: ...1 Introduction C H A P T E R ...
Страница 5: ...4 PCL 841 Series User s Manual ...
Страница 6: ...2 Hardware Installation C H A P T E R ...
Страница 8: ...Chapter 2 Hardware Installation 7 Jumper and switch locations ...
Страница 13: ...12 PCL 841 Series User s Manual ...
Страница 14: ...3 Software Programming C H A P T E R ...
Страница 22: ...4 DataMonitor Utility C H A P T E R ...
Страница 28: ...5 Wiring C H A P T E R ...
Страница 31: ...30 PCL 841 Series User s Manual ...
Страница 32: ...A Register structure A P P E N D I X ...
Страница 37: ...36 PCL 841 Series User s Manual ...