Colway Solutions
Modbus Member Logo

Microchip Explorer 16

PICDEM 2 PLUS



Tested Environment:
CPU Board IDE OS Ethernet RS-232 RS-485
PIC24FJ128GA010 Explorer 16 MPLAB X IDE v2.10 Yes Yes NA
PIC18F46K22 PICDEM 2 PLUS MPLAB X IDE v2.10 NA Yes NA
PIC16F1937 PICDEM 2 PLUS MPLAB X IDE v2.10 NA Yes NA
PIC16F1936 PICDEM 2 PLUS MPLAB X IDE v2.10 NA Yes NA

Characteristics:
CPU
Code size in KB (approximate figures)
Read Coils Read Discrete Inputs Read Coils + Write Coils Read Input Registers Read Holding Registers Read Holding registers + Write Holding Registers All 8 Functions
Microchip PIC24FJ128GA010 3.5 3.6 3.7 3.8 3.8 3.9 4
Microchip PIC18F46K22 6.3 6.3 7.3 6.2 6.2 10.1 12.1
Microchip PIC16F1937 2.8 2.8 3.2 2.8 2.8 4.1 5
Microchip PIC16F1936 4.3 4.3 4.8 4.5 4.5 5.7 6.8

Verify the code before buying

Colway Solutions provides a hex file so that the customer can test the code before buying the library

PIC24FJ128GA010 Modbus Slave RTU - Hex file download

PIC24FJ128GA010 Modbus Slave TCP - Hex file download

PIC18F46K22 Modbus Slave RTU - Hex file download

PIC16F1937 Modbus Slave RTU - Hex file download

PIC16F1936 Modbus Slave RTU - Hex file download

After downloading the hex file make sure you follow the steps for proper communication
1. For testing the Modbus Slave use Modbus Master (Eg: download Wintech Modscan32 http://www.win-tech.com/html/modscan32.htm which is available free or you can use any Modbus Master which you are familiar). The below steps are written by taking Modscan as reference however configurations remains same for any Modbus Master.

2. Load and write the hex file into the MPLAB IDE

3. For RTU: Open Modscan, go to Connection->Connect a dialog box appears where you need to set the following configuration
1. Baud Rate: 9600
2. Word Length: 8
3. Parity: None
4. Stop Bits: 1 as shown below



For TCP: Open Modscan, go to Connection->Connect a dialog box appears, set the following configuration
1. Choose Remote modbusTCP Server
2. Set IP address of the Modbus Slave i,e 192.168.5.15
3. Service Port: 502



Set system's IPv4 configuration 192.168.5.20, since the IP address of the Mosbus Slave is 192.168.5.15

4. After connecting, set Address: 0001 Length: 10 ( As we are sending 10 dummy data values from the Modbus Slave, anything beyond 10 shows 'Exception Response') Device Id: 1



5. Now the Modbus master will be ready to communicate with the Slave.


Privacy Policy Site Map FAQ Contact Us