3.3 CRC/LRC Verification Algorithm
RTU mode: CRC-16 verification must be used, with a polynomial of 0xA001. The manual provides detailed C # code examples and bitwise computation logic. A common mistake for beginners is to confuse the order of sending high and low bytes (sending the CRC low byte first).
ASCII mode: using LRC (Vertical Redundancy Check), starting with a colon (0x3A), ending with a carriage return and line break CRLF (0x0D 0x0A), characters are sent in hexadecimal ASCII code.
Chapter 4: Remote Drive Control via Control Words
The value of the CM module lies in directly controlling the start stop, steering, and speed regulation of the frequency converter through the bus. This involves the core parameters Control Word 410 and Status Word 411.
4.1 Three Control Modes (Local/Remote 412)
According to application requirements, the parameter Local/Remote 412 supports the following modes:
Mode 0- Contact Control: All logic is determined by external hard wired terminals, and the serial port is only used for reading status.
Mode 1- State Machine Control: The most commonly used mode. Trigger the state machine (such as "Switch On", "Enable Operation") through Bit 0-7 of Control Word 410. This complies with the DRIVECOM standard and has a comprehensive fault response mechanism.
Mode 2- Remote Contact: Directly map the virtual state of the digital input terminal (such as analog S2IND start signal) through Bit 0-9 of Control Word 410.
4.2 State Machine Jump and Emergency Stop Handling
In Mode 1, the drive must follow a strict state machine sequence (Chapter 9.1.2):
Power on initialization: The status is Switch On Disabled.
Start sequence: Send Shutdown (0x06) ->Switch On (0x07) ->Enable Operation (0x0F).
Shutdown and DC braking: The transition behavior from "running" to "off" can be defined through the State transition 5 392 parameter.
Set to 2 (Ramp): Perform ramp deceleration until completely stopped before disconnecting the output, suitable for smooth shutdown.
Set to 1 (DC Brake): Activate DC brake, suitable for quick positioning or situations with braking requirements.
4.3 Watchdog Protection (Watchdog 413)
In remote control mode, communication interruption may cause the device to lose control. The parameter RS232/RS485 Watchdog Timer 413 defines the maximum time (in seconds) allowed for communication interruption.
If the timeout occurs, the frequency converter will report fault F2010 and automatically shut down, ensuring the principle of "safety failure".
Note that frequent cyclic write operations should use RAM write (dataset+5) to avoid burning EEPROM and shortening its lifespan.
