Using The Can-Prim Interface - Jetter JC-120MC User Manual

Table of Contents

Advertisement

10 Programming

Using the CAN-Prim interface

Initialization
Configuring a message
box as outbox
556
To initialize the CAN-Prim interface proceed as follows:
Step
1
Set bit 2 = 1 in R 20002077 JX2 system bus special functions.
If JX2 expansion modules have also been connected to the JX2 system
bus, then bit 2 = 1.
2
Start up the JX2 system bus.
3
Configure the CAN ID length for all message boxes.
If the CAN ID length...
... is 11 bits,
... is 29 bits,
To configure a message box as outbox, proceed as follows:
Step
1
Select a message box. In this manual message box 1 is used (basic
register number 200010550).
2
Configure message box 1 as outbox:
R 200010551 := 1;
3
Configure the CAN ID for sending messages
R 200010552 := CAN ID;
4
Activate message box 1:
R 200010563 := 1;
Result if configuration was successful:
Bit 0 = 1 in R 200010550
Action
... then ...
... command register 200010501
:= 8;
... command register 200010501
:= 9;
Action
Jetter AG

Advertisement

Table of Contents
loading

Table of Contents