Protocol stx etx
PLC response Number of bytes: 0008, data: 02 32 30 32 30 46 34 30 // STX, "2020F40", PC reads 2EH bytes of continuous data at the address of PLC 802EH
Number of bytes sent on behalf of the PLC model FX1S PC: 0011, data: 02 30 38 30 30 30 32 45 03 37 32 // STX, "0", "8000", "2E", ETX, "72" issue read Continuous 2EH byte data command at PLC 8000H address (these contents are preset parameter values in if PLC returns "09", it means that the PLC runs the PLC response byte number: 0006, Data: 02 30 41 03 37 34 // STX, "0A", ETX, "74" PLC returns "0A", which means PLC pause PLC response Number of bytes: 0001, data: 06 // ACK PLC response (received) Number of bytes sent by PC: 0001, data: 05 // ENQ If there is no response for 3 consecutive times, there will be a communication error and the connection to the PLC will not be possible. Number of bytes sent by PC: 0001, data : 05 // ENQ if there is no response, the ENQ will be sent again with a delay of 1.28X10mS. The PC (set to FX1S) normally downloads the 11-step program to the stopped FX1S.ĭownload Mitsubishi FX1S PLC communication protocol description RS232C interface, communication baud rate 9600, 7, e, 1.
PROTOCOL STX ETX SERIES
+ ETX = 30h + 31h + 30h + 46h + 36h + 30h + 34h + 03h = 74h Īccumulative sum more than two digits take the lower two digits, convert to ascii code, and divide into SUM ), SUM (lower) secondary transmission.Įxample 1 of Mitsubishi FX series PLC programming port communication protocol Message start, read command, address 10F6H, 04H byte data, message end, accumulation mode and checkĪmong them SUM = CMD +.
PROTOCOL STX ETX CODE
This protocol is actually applicable to the PLC programming port and the communication andĬommand (CMD) of the FX-232AW module Command code Target deviceĬommand hexadecimal code command Explanation