Industrial Automation MODBUS Protocol Reader Reader Configuration Software|Tools of Reader Card Mode Configuration Operation Guide

There are four card reading modes supported by the MODBUS card reader configuration software of this program, which are standard MODBUS , Enchance Mode , Continue Read Mode and Read Once Mode . The specific card reading mode to be used is configured according to actual needs. In addition, the card reading modes supported by different card reader models are also inconsistent. Please refer to the relevant instruction manual of the card reader for the specific supported modes. An introduction to the card reader mode of the card reader is as follows:

  • Standard MODBUS : Standard MODBUS RTU communication mode, one answer and one answer.
  • Enchance Mode : After setting to this mode, every time a MODBUS command is received, it will not return to an error state until the command is successfully executed.
  • Continue Read Mode : After setting to this mode, as long as it receives a MODBUS query command, the device will continue to execute, and then send the successfully read data until the command is sent to change this mode.
  • Read Once Mode : After setting to this mode, as long as it receives a MODBUS query command, the device will continue to execute it, and then send the successfully read data until it sends a command to change this mode. But the same RFID card can only be read once in a row, that is, read card A, send the read data, then read card A, no more data, until card B is read, then card A can be read .

Note: In the Continue Read Mode in the card reading mode, due to the version and other reasons, some card readers cannot set the frame header and frame end of the data frame. For detailed function support, please refer to the relevant instruction manual of the card reader.

Figure 1. Card reading mode

1. Standard MODBUS mode read and write operations

For the specific command protocol format for reading and writing in standard MODBUS mode, please refer to the relevant instruction manual of the card reader. This example is based on this protocol.

For the specific meaning of each address and register, please refer to the relevant instruction manual. Examples of read and write operations are as follows:

1. Read operation in standard MODBUS mode

This reading operation example takes the high-frequency card reader to read the data of the RFID card as an example:

1.1. In the register data operation area, fill in the address and quantity of the register to be queried. In this example, you need to query the card reader to read the data of the RFID card, and select the data with the read address as 10 and the number of registers as 4. Click the "Read Register" button.

Figure 2. The address and register read by the card reader

1.2. After clicking the "Read Register" button, the program receiving data area will display the read data after the reading is successful. The operation indicator is green. If the reading fails, the operation indicator is red.

Figure 3. Successful reading operation of the card reader

Note: Since this example is to read RFID data, if there is no RFID card, the program will prompt "The operation address is wrong or the quantity exceeds the valid range!" or the operation indicator is red.

2. Write operation in standard MODBUS mode

This reading operation example takes the high-frequency card reader to write data to the RFID card as an example:

2.1. This example needs to write data to the RFID card. Choose the write address as 10 and the number of registers as 4. Since each register is 2 bytes, 8 bytes are written and the data is written in the sending data area "00 09 00 08 00 07 00 06". Click "Write Register".

Figure 4. Write data operation

2.2. After the previous step is completed. The operation indicator in the write operation area is displayed in green, indicating that the write is successful. Click to select "Read Register", the received data area displays "00 09 00 08 00 07 00 06", and the read data is consistent with the written data.

Figure 5. Successfully write data

Three, Continue Read Mode operation

 

The operation flow of card reading mode setting is as follows:

3.1. After the device is searched, the relevant baud rate, check bit, station number, card reading mode and other data are all displayed on the program. Click the "Reading Mode" combo box, and a drop-down interface will pop up. Only the Contiune Read Mode will be selected for this card reading mode operation for demonstration. Select Contiune Read Mode and click the "Set Card Read Mode" button. Note that some card readers do not support setting the header and end of the data frame, so the setting can be completed by reaching this step.

Figure 6. Setting of card reading mode

3.2. After successfully configuring the card reading mode, the program pops up a pop-up window of "Configuring the card reading mode successful", indicating that the configuration is successful. Click OK to go to the next step.

Figure 7. The card reading mode is set successfully

3.3. After setting the card reading mode, the program pops up another interface, which is used to configure the data frame format output by the card reader after the card reading mode is set to Continue Read Mode, which are the data frame header and end settings and read The address and number of registers. Check the corresponding position to perform related operations.

Figure 8. Data frame setting 1

3.4. Tick both, input "AA BB" for the frame header and "FF" for the end of the frame. The data in the edit box for the header and the end of the frame is hexadecimal, and each byte is separated by a space. When the frame head or frame tail edit box is left blank and no data is filled in, it is set to no frame head or no frame tail. Enter "10" for the register address and "4" for the number of registers. Note that the data entered this time is only used as an example, and can be entered according to the actual situation.

Figure 9. Data frame setting 2

3.5. After clicking OK, two prompt windows will pop up, which are "successfully set the frame header and end frame" and "successfully set the number of register read and write addresses". If the relevant prompt window does not pop up, just re-operate.

Figure 10. Data frame setting is complete

3.6. The data frame output effects are as follows:

 

​​​​​​​Four, Read Once Mode operation

 

Since the setting of Read Once Mode is similar to the setting of Continue Read Mode, you can refer to the operation flow of Continue Read Mode and select Read Once Mode when selecting the card reading mode .

Five, related instructions

  • About configuration software operation
  1. The examples in this instruction manual use a high-frequency card reader as a demonstration.
  2. The actual operation steps of the low-frequency card reader and the high-frequency card reader are basically the same, and some places may differ. For example, in the register read and write operation, the meaning of each register of the high-frequency card reader and the low-frequency card reader may be different, and you need to refer to the relevant instruction manual of the card reader for operation.
  • About setting data frame in card reading mode
  1. When setting the data frame format, when the frame header or frame end edit box is left blank and no data is filled in, it is set to no frame head or no frame end.
  2. When setting the card reading mode and data frame format, do not place the card in the reading range of the card reader. This operation will cause the setting to fail.
  3. The number of frame header and frame end of the data frame can not exceed 13 bytes.

 

Guess you like

Origin blog.csdn.net/Alex88389516/article/details/113718844