Jetter AG
135
JVM-407B
CANopen® STX API
// Send data per PDO
CanOpenAddPDOTx(
CANNo,
// Number of the bus line
CANOPEN_PDO2_TX(NodeID_Node_1),
// CANID
0
,
// BytePos
CANOPEN_DWORD,
// DataType
sizeof
(Data_1_of_Node_1),
// DataLength
Data_1_of_Node_1,
// VarAddr
Event_Time,
// Event time
Inhibit_Time,
// Inhibit time
CANOPEN_ASYNCPDORTRONLY);
// Paramset
CanOpenAddPDOTx(
CANNo,
// Number of the bus line
CANOPEN_PDO2_TX(NodeID_Node_1),
// CANID
4
,
// BytePos
CANOPEN_DWORD,
// DataType
sizeof
(Data_2_of_Node_1),
// DataLength
Data_2_of_Node_1,
// VarAddr
Event_Time,
// Event time
Inhibit_Time,
// Inhibit time
CANOPEN_ASYNCPDORTRONLY);
// Paramset
CanOpenAddPDOTx(
CANNo,
// Number of the bus line
CANOPEN_PDO3_TX(NodeID_Node_2),
// CANID
0
,
// BytePos
CANOPEN_BYTE,
// DataType
sizeof
(Data_1_of_Node_2),
// DataLength
Data_1_of_Node_2,
// VarAddr
Event_Time,
// Event time
Inhibit_Time,
// Inhibit time
CANOPEN_ASYNCPDO | CANOPEN_NORTR);
// Paramset
// All nodes on the CAN bus are in PREOPERATIONAL state
// Setting all nodes on the CAN bus to OPERATIONAL state
CanOpenSetCommand(CANNo, CAN_CMD_NMT_Value(CAN_CMD_NMT_ALLNODES,
CAN_CMD_NMT), CAN_NMT_START);
// As of now, PDO telegrams will be transmitted from the devices with
node ID 74
// and 112.
// ...
End_Task
;
Содержание JVM-407B-HMI
Страница 1: ...User Manual JVM 407B HMI 60879892 We automate your success...
Страница 14: ......
Страница 26: ...26 Jetter AG 2 Product description and design Rear view...
Страница 34: ......
Страница 80: ......
Страница 98: ...98 Jetter AG 5 Initial commissioning Initial commissioning in JetViewSoft see page 86 Related topics...
Страница 106: ......
Страница 144: ......
Страница 168: ......
Страница 178: ......
Страница 182: ......
Страница 196: ...196 Jetter AG 10 Programming If Merker1 Then Inc Status_LEDs Delay T 100ms End_If End_Loop End_Task...
Страница 220: ...220 Jetter AG 10 Programming Topic Page Programming 221 Registers 233 Sample programs 238 Contents...
Страница 258: ......
Страница 268: ......
Страница 274: ......
Страница 294: ...294 Jetter AG Appendix Rear view...
Страница 299: ......