CS-CAN Command English Manual 2013.03.20 Version 1.
History Version History Date Version Pages Description 20/03/2013 1.0 All First release Copyright 2013 SystemBase Co., Ltd. All rights reserved. Homepage: http://www.sysbas.com/ Technical Support: http://www.solvline.com/ Tel.: +82-2-855-0501 Fax: +82-2-855-0580 16F Daerung Post Tower-1, 212-8, Guro-dong, Seoul, Republic of Korea Please contact us at tech@sysbas.com if you have any questions.
Index Index 1. Outline ...................................................................................................................... 4 2. Commands in CS-CAN v1.00 ................................................................................... 4 2.1 Global commands ............................................................................................................ 5 2.2 Active commands .....................................................................................................
Commands in CS-CAN v1.00 1. Outline CS-CAN operates according to the commands received from serial data. You can use number of commands to use CS-CAN or modify the settings. There are two modes, Configuration mode and Active mode in CS-CAN depends on the internal status. In each mode, there are different commands that can be inputted. Global commands can be used in both modes. Configuration commands can only be used in Configuration mode, while Active commands is for the Active mode.
Global commands 2.1 Global commands Command VA Description - Returns the firmware version. - Return Syntax: OK + Vx.xxxx + - x indicates numbers for a firmware version Example If the returned value is OKV1.00, current firmware version is 1.00. Command MO Description - Returns current status mode in CS-CAN. - Return Syntax: OK + x + - x should be a number ‘0’ or ‘1’. (1: Active, 0:Configuration) Example If the returned value is OK1, current status mode is Active mode.
Global commands Command RS Description - Reads RS232 communication settings from the converter - Return Syntax: OK+(BSP)+ - B Baud rate 0: 1200bps 1: 2400bps 2: 4800bps 3: 9600bps 4: 14400bps 5: 19200bps 6: 38400bps 7: 57600bps 8: 115200bps - S Stop bit 0: 1bit 1: 2bits - P Parity bit Example 0: None 1: Odd 3: Mark 4: Space 2: Even If the returned value is OKRS300, Baud rate in RS232 is 9600bps and it is using none parity, 1 stop bit to communicate.
Active commands 2.2 Active commands Command +++ Description - Enter Configuration mode - Return Syntax: OK Example When +++ is received during Active mode, OK is returned and it will operate in Configuration mode. Command t(lllLDD...) Description - t: This is a command header which transmits CAN standard data frame. - I: Message identity of CAN frame (3 digits, range: 000~7FF) - L: The length of CAN frame.
Active commands Command E(llllllllL) Description - E: This is a command header which transmits CAN extended data frame.
Configuration commands 2.3 Configuration commands Command -- Description - Exit from Configuration mode - Return Syntax: OK Example When -- is received in Configuration mode, OK is returned and it will operate in Active mode. Command &F Description - Change all settings to the default settings in CAN converter. - Settings are applied after the reset is completed.
Configuration commands Command WS(BSP) Description - This command sets environment for RS232 communication. - B Baud rate 0: 1200bps 1: 2400bps 2: 4800bps 3: 9600bps 4: 14400bps 5: 19200bps 6: 38400bps 7: 57600bps 8: 115200bps - S Stop Bit 0: 1bit 1: 2bits - P Parity Bit Example 0: None 1: Odd 3: Mark 4: Space 2: Even When CS-CAN takes WS300 command, it will set Baud rate in RS232 to 9600bps, stop bit to 1, and parity bit to none.
Configuration commands Command CE(eE) Description - The command for transmitting extended CAN frame can be changed. - If you change to the command that already exists, CS-CAN may not operate properly. Please be advised before changing commands. Example When CS-CAN takes CESV command, SlllLDD... can be used instead of tlllLDD.... VlllL can be used instead of TlllL.
Error Code 2.4 Error Code Command ER(C) Description - This indicates that the error has occurred. - C Error Code If no Error Code is provided, the message is incorrect. Example 1: Passive 2: Warning 3: Bus off 4: Stuff error 5: Form error 6: Ack error 7: Bit1 error 8: Bit0 error 9: CRC error - If returned value is ER, it means CS-CAN did not understand the command. You have to check whether the command is correct.
Progreamming Guide 3. Programming Guide This page provides the information regarding how to modify configuration for communication environments in serial and CAN. 3.1 How to set configuration for the serial communication environment. Order Command Description Summary Step 1. MO Check Send VA command to CS-CAN and check the current current mode in CS-CAN mode in CS-CAN.
Programming Guide 3.2 How to set configuration for the CAN communication environment. Order Command Description Summary Step 1. MO Send VA command to CS-CAN and check the current Check for current mode in CS-CAN. If returned syntax is OK0, then the mode used in CS- mode is in Configuration mode, but if it is OK1, then it is CAN in Active mode. If the mode is Configuration mode in CSCAN, please move to Step 3, but if the mode is Active Mode, then proceed to Step 2.
Progreamming Guide 4. Troubleshoot This page provides the information regarding frequently asked questions about CS-CAN and how to solve the problems. 1. CS-CAN does not work properly. Check if 5V of power is supplied to CS-CAN. Connect CS-CAN with RS232 port in your PC and check the configuration for the serial communication. (If you do not know the settings for serial communication, please use the auto detect feature in CS-CAN utility which was provided with the product.) Check CS-CAN status.