Connecting to PPA Datalogger ................6 Adjusting the CAN-port’s settings using PPA Datalogger ........8 Setting up Multilogs for the CAN-port in PPA Datalogger ........11 Saving and Loading PCAN Setup Settings in PPA Datalogger ........14 Finalising the setup with PPA Datalogger ............. 16 Communications Usage ..................
Introduction The CAN-port unit is designed as an interface between a CAN network and a Newtons4th PPA series Power Analyzer. The unit receives commands from the CAN network or via serial (RS232) and then processes these commands and controls and instructs the PPA;...
Function Not used RX data TX data Not used Not used Not used Serial Connection (CAN) The CAN port on the CAN-port uses 9-pin male ‘D’ type with the following pins. Function Not used CAN L Not used Not used...
To load new firmware into the CAN-port unit, ensure it is powered off. Connect the CAN terminal to a PC using a CAN converter. To place the CAN-port unit into Boot Mode, hold the boot switch on and then power on the unit. The light on the CAN-port unit should be flashing orange, indicating it has successfully entered boot mode.
Ensure the CAN-port unit is powered on; the status light should be blinking green. Once the CAN-port unit is on, connect an RS232 cable to the serial port and connect it to your PC. Open the PPA Datalogger software and navigate to the PCAN menu.
The CAN Message Settings allow you to edit how the CAN-port unit interacts with the rest of the CAN network. CAN Read ID is the CAN message ID (in hex) that the CAN-port unit will accept CAN messages from. CAN Reply ID is the CAN message ID (in hex) that the CAN-port unit will send its CAN messages to.
Page 9
Reply with old data if no new data is available? ensures the CAN-port unit sends a reply when multilog data is requested, even if no new data is available. The previous set of data is sent in case a new set of data is not available.
Using PPA Datalogger you can select up to 60 Multilog parameters that can be set into the CAN-port unit which it will, when powered on, send the corresponding commands to the PPA to set it up to log those parameters.
Page 12
The selected values will now appear in the list on the PCAN Setup page; to change the selected multilog parameters, pres Select Multilogs again and change your selection. The first value is Data Count, because we have “Send the first reply in a multilog response as the data count?”...
Page 13
Selecting Custom allows the ID to be changed using the “Edit Selected” button. To use this button, select a multilog by clicking it (other than Data Count) and press the Edit Selected Button. Editting a multilog allows you to change the format type, start location in the message, the length of the message this value will use up and a scale factor and offset.
Saving and Loading PCAN Setup Settings in PPA Datalogger To save the setup, press the Save button in the bottom left corner of the PCAN Setup window This allows you to save the current setup as a .ini file The .ini file is fully editable, and a good way to edit multilogs and other settings...
Page 15
Load an .ini file using the Load button in the bottom left corner And the settings will match the values in the .ini file...
PPA and ensure the PPA is turned on and its interface is set to RS232 (and with the correct baud rate) in the REMOTE menu. From then onwards, each time you turn the CAN-port unit on, it will then set up the PPA as per the settings from PPA Datalogger.
Commands can be sent to the CAN-port unit either by sending a CAN message with the CAN Message’s ID set to the ID that the CAN-port unit is set to read over the CAN network, or by connecting to the CAN-port unit with a serial (RS232) connection and using Newtons4th’s CommView2 program.
Requesting Multilog Data To request Multilog data from the PPA via the CAN-port, simply send a direct command to the PPA using the “MULTIL?;”, “MULTI#?;” or “MULTIL,lines?;” query over CAN, as described in your PPA’s Comms Manual. The “MULTI#?;” command will be sent for you automatically if you have set the CAN-port to repeatedly request data from the PPA, and on power up if POWML is set (either via command or by using PPA Datalogger’s “Request Multilog Data...
BITR? Description: Replies with a hex value representing the CAN Bitrate Parameters: None Values: 0 = 10000 1 = 20000 2 = 33300 3 = 47600 4 = 50000 5 = 83300 6 = 95200 7 = 100000 8 = 125000 9 = 200000 A = 250000 B = 500000...
Page 24
Description: Sets the CAN ID the CAN-port listens to Parameters: ID In Hex (3CH) Values: Between "001" and "7FF" Example: "ID07A" Sets CAN ID to (07A [122])
Page 25
Description: Replies with the CAN ID the CAN-port listens to Parameters: None Values: Between "001" and "7FF" Example: "ID?" > "07Ah" Replies with the CAN ID in hex...
IDN? / *IDN? Description: Replies with the PCAN's an identification string Parameters: None Values: None Example: "IDN?" > "NEWTONS4TH,CAN-port,1.0.0" Replies with "NEWTONS4TH", "CAN-port", Serial Number, and Firmware Version...
MLCOUNT Description: Sets if the CAN-port should send a counter as the first message in a multilog reply. The counter increases each time new data is sent over CAN. The counter will reset every 65535 replies. Parameters: A single integer value, representing on/off...
MLCOUNT? Description: Replies with if the CAN-port will send a counter as the first message in a multilog response Parameters: None Values: 0 = Off 1 = On Example: "MLCOUNT?" > "1" Indicates that the CAN-port will send the counter as...
MLNOOLD Description: Sets if the CAN-port should send the last multilog response if no new data has been received Parameters: A single integer value, representing whether repeat data can be sent Values: 0 = Send repeat data. 1 = Only send new data.
MLNOOLD? Description: Replies with if the CAN-port will reply with repeat data if no new data is available from the PPA Parameters: None Values: 0 = Send repeat data. 1 = Only send new data. Example: "MLNOOLD?" > "1" Indicates that the CAN-port will not send repeat data.
MLREP Description: Sets the CAN-port to repeatedly request multilog data from the PPA Parameters: A single integer value, representing how often the CAN-port should re-request data from the PPA Values: 0 = Don’t Repeat 1 = Repeat 2 = Repeat On Command Example: "MLREP1"...
MLREP? Description: Replies with if the CAN-port is repeatedly requesting multilog data Parameters: None Values: 0 = Don’t Repeat 1 = Repeat 2 = Repeat On Command Example: "MLREP?" > "1" Indicates that the CAN-port is repeatedly sending “MULTIL#?” commands to the PPA over serial.
2 = Custom – Responses are sent to custom IDs Example: "MLREPLY1" Sets the CAN-port to send each message in a multilog response to incremental IDs starting from the reply ID.
2 = Custom – Responses are sent to custom IDs Example: "MLREPLY?" > "1" Indicates that the CAN-port will send each message in a multilog response to incremental IDs starting from the reply ID.
MLSTART Description: Starts the CAN-port to repeatedly request multilog data when MLREP is set to Repeat On Command (2) Parameters: None Values: None Example: “MLREP2” "MLSTART" … “MLSTOP”...
MLSTOP Description: Stops the CAN-port from repeatedly request multilog data when MLREP is set to Repeat On Command (2) Parameters: None Values: None Example: “MLREP2” "MLSTART" … “MLSTOP”...
Page 37
PPA for multilog results, if MLREP is set Parameters: A single floating point value, representing the speed (in seconds) the CAN-port requests multilog results Values: Between 0.025 (2.5E-2) and 100.0 (1.0E3) seconds Example: "MS7.5E-1" Sets the CAN-port to request multilog data every 750 milliseconds.
Page 38
Description: Replies with how the CAN-port will parse multilog responses into CAN messages Parameters: None Values: Between 0.025 (2.5E-2) and 100.0 (1.0E3) seconds Example: "MS?" > "0.75" Replies with the speed the CAN-port will be requesting multilog results.
MULTILOG Description: Sets the CAN-port’s internal multilog settings and sends the appropriate setup command to the PPA over serial. Parameters: MULTILOG,Index,Phase,Func MULTILOG,Index,Phase,Func,CustomID MULTILOG,Index,Phase,Func,Form,Scale,Off MULTILOG,Index,Phase,Func,Form,CustomID,Scale,Off MULTILOG,Index,Phase,Func,Form,Start,Len,Scale,Off MULTILOG,Index,Phase,Func,Form,CustomID,Start,Len,Scale,Off Index is the Multilog index as an integer (see PPA Comms Manual) Phase is the Multilog phase as an integer (see PPA...
0 in the message and will be 8 bytes long. The value will be divided by 100x and have 500 added to it. POWLOAD Description: Sets if the CAN-port loads the last settings it used on power up Parameters: Single integer value, representing on/off Values:...
POWLOAD? Description: Replies if the CAN-port will load settings on power up Parameters: None Values: 0 = Off 1 = On Example: "POWLOAD?" > "1" Replies with current POWLOAD setting (On)
POWML Description: Sets if the CAN-port sends multilog commands for a PPA when it next powers up Parameters: Single integer value, representing if the multilog commands should be sent Values: 0 = Off 1 = On Example: "POWML1" Sets POWSET to on, indicating that when the CAN-...
POWML? Description: Replies with if the CAN-port will send multilog commands over serial next time it powers up Parameters: None Values: 0 = Off 1 = On Example: "POWML?" > "1" Indicates that the CAN-port will send multilog commands over serial next time it powers up...
POWSTAT Description: Sets if the STATUS? Command should be performed on power up Parameters: Single integer value, representing if the STATUS? should be sent Values: 0 = Off 1 = On Example: "POWSTAT1" Sets POWSTAT to on, indicating that when the CAN- port next powers on the STATUS? Command will be performed, sending the STATUS over CAN...
POWSTAT? Description: Replies with if the STATUS? Command will be performed on power up Parameters: None Values: 0 = Off 1 = On Example: "POWSTAT?" > "1" Indicates that the STATUS? Command will be performed next time the PCANRS232 powers up...
POWSET Description: Sets if the CAN-port sends setup commands for a PPA when it next powers up Parameters: Single integer value, representing if the setup commands should be sent Values: 0 = Off 1 = On Example: "POWSET1" Sets POWSET to on, indicating that when the CAN-...
POWSET? Description: Replies with if the CAN-port will send setup commands over serial next time it powers up Parameters: None Values: 0 = Off 1 = On Example: "POWSET?" > "1" Indicates that the CAN-port will send setup commands over serial next time it powers up...
0 = Don’t Load a program 2+ = Load the program of the given value Example: "PROG000" Tells the CAN-port to not load a program when it next powers on “PROG032” Tells the CAN-port to load program ( 032 [50] ) when...
PROG? Description: Replies with which program on the PA, if any, the CAN-port will load in when it next powers on Parameters: None Values: 0 = Off 2+ = The program that will be loaded in, in hex. Example: "PROG?"...
REPLY Description: Sets the CAN ID to reply to Parameters: ID in hex (3CHAR) Values: Between "001" and "7FF" Example: "REPLY1AB" Sets the CAN ID to which the CAN-port sends replies to 1AB (427)
REPLY? Description: Replies with the CAN ID the CAN-port replies to Parameters: None Values: Between "001" and "7FF" Example: "REPLY?" > "1AB" Replies with CAN ID to which the CAN-port sends replies (1AB [427])
CHAR 1: PowerOn OK CHAR 2: LoadFromMemory OK CHAR 3: SerialSetup OK CHAR 4: CANSetup OK Example: "STATUS?" > "1011" Indicates that the CAN-port was able to perform Power On setup, Serial setup and CAN Setup OK, but didn’t Load From Memory.
Need help?
Do you have a question about the CAN-port and is the answer not in the manual?
Questions and answers