Jetter JXM-MUX User Manual page 30

Table of Contents

Advertisement

3 Configuration
JetSym STX program
Selecting a 4-channel
split screen
30
CanOpenAddPDOTx (CAN_CONTROLLER_0, CANOPEN_PDO1_TX
(NodeID_JXM_MUX), 0, CANOPEN_BYTE, 1, PDO1tx[0], Event_Time,
Inhibit_Time, CANOPEN_ASYNCPDO | CANOPEN_NORTR);
CanOpenAddPDOTx (CAN_CONTROLLER_0, CANOPEN_PDO1_TX
(NodeID_JXM_MUX), 1, CANOPEN_BYTE, 1, PDO1tx[1], Event_Time,
Inhibit_Time, CANOPEN_ASYNCPDO | CANOPEN_NORTR);
CanOpenAddPDOTx (CAN_CONTROLLER_0, CANOPEN_PDO1_TX
(NodeID_JXM_MUX), 2, CANOPEN_BYTE, 1, PDO1tx[2], Event_Time,
Inhibit_Time, CANOPEN_ASYNCPDO | CANOPEN_NORTR);
// All nodes on the CAN bus are in PREOPERATIONAL state
// Setting all devices on the CAN bus to OPERATIONAL status
CanOpenSetCommand (CAN_CONTROLLER_0, CAN_CMD_NMT_Value
(CAN_CMD_NMT_ALLNODES, CAN_CMD_NMT), CAN_NMT_START);
// ...
// ...
// ...
End_Task;
The following program is for selecting 4-channel split screen mode of the
JXM-MUX module.The image of camera 4 is displayed in the top left quarter of
the monitor. The image of camera 3 is displayed in the top right quarter of the
monitor. The image of camera 2 is displayed in the bottom left quarter of the
monitor. The image of camera 1 is displayed in the bottom right quarter of the
monitor.
#Include
"CanOpen.stxp"
Const
// CAN no. 0
CAN_CONTROLLER_0 = 0;
// Node ID of JVM-407
NodeID_JVM_407 = 0x0A;
// Node ID of JXM-MUX
NodeID_JXM_MUX = 0x7F;
// Event time in ms
Event_Time = 1000;
// Inhibit time in ms
Inhibit_Time = 100;
End_Const;
Var
// Permanent PDO mapping of CAN data to JXM-MUX
PDO1tx:
Array
[6]
End_Var;
Task
JXM_MUX_Control_Example_2
Var
of
Byte;
Autorun
Jetter AG

Advertisement

Table of Contents
loading

Table of Contents