Follow us
Home > News > Content
Serial Port Communication And Network Port Communication
Jul 20, 2018

We need to fix some concept before express.

1. Lower location, lower location means the computer equipped with marking card and laser source.

2. Upper position, upper position the computer that send marking content, and it requires installed relative data transmission software. For example, comport must be installed in serial port’s upper position, and TCP tester (available in folders from JCZ) must be installed in network port’s upper position.

A. Serial port communication

1. Connect upper position and lower position by serial port wire.

2. Open “comport” in upper position, firstly, click “open serial port”, secondly, click “serial port configuration”, like picture 1.

 Laser cleaning machine rust removal 200w 500w

Picture 1

At this time, serial port configuration had opened, like picture 2.

 Laser cleaning machine rust removal 200w 500w

Picture 2

3. Set serial port parameter, like picture 3.

 Laser cleaning machine rust removal 200w 500w

Picture 3

4. Draw serial port text in lower position. Click text, select enable variable text, click “add” then select serial port communication, you will see like picture 4.

 Laser cleaning machine rust removal 200w 500w

Picture 4

5. Change the relative parameter in lower position according to upper position’s serial port configuration, like picture 5.

BaudRate, DataBits, StopBits and Parity must be exactly consistent. And select port by the port numbering of connected data wire.

It can only communicate when upper position and lower position are consistent. Marking software will use ASC2 coding communication unless you select UNICODE. If you select UNICODE, then it will use UNICODE.

Command: You can edit the request data information to upper position from lower position.

 Laser cleaning machine rust removal 200w 500w

Picture 5

Modify command, click “Ok”. It will display the command text. Like picture 6.

 Laser cleaning machine rust removal 200w 500w

Picture 6

6. Click “Mark”, it will display on lower position like below picture 7.

 Laser cleaning machine rust removal 200w 500w

This sign means: lower position is sending data to upper position through serial port

 Laser cleaning machine rust removal 200w 500w

This sign means: communication finished, waiting upper position deliver marking data

7. After lower position sent information, upper position will receive data. At this time, input the marking content in upper position, press “enter”, then click “deliver data”.

Note: After input marking content, it must be finished by press “enter” from keyboard.

 Laser cleaning machine rust removal 200w 500w

Picture 8

8. At this time, lower position will mark the content sent by upper position, and prompt will disappear then display as command.

 Laser cleaning machine rust removal 200w 500w

Picture 9

   Above step 2, 3, 7 for upper position and step 4, 5, 6, 8 for lower position.

B. Network port communication

1. Upper position and lower position can be connected by internet, LAN or WAN.

2. Open TCP_tester software in lower position, select TCP server, display as below:

 

 Laser cleaning machine rust removal 200w 500w

Picture 1

Modify computer port as 1212, click “star listen”, display as below:

 Laser cleaning machine rust removal 200w 500w

Picture 2

3. Draw network content at lower position. Click “text”, select “enable variable text”, click “add”, select TCP/IP communication, display as below:

 Laser cleaning machine rust removal 200w 500w

Picture 3

Modify configuration according to upper position’s IP address, change port as “1212”, modify order, display as below:

 Laser cleaning machine rust removal 200w 500w

Picture 4

Click “Ok”, display as below:

Laser cleaning machine rust removal 200w 500w

Picture 5

4. Click “Mark”, lower position display as below. If it prompt as connect succeed, thus can modify port for both upper position and lower position.

 Laser cleaning machine rust removal 200w 500w

Picture 6

5. Upper position will display as below, display the IP address, port and command.

 Laser cleaning machine rust removal 200w 500w

Picture 7

Input the marking content, select deliver object. (It is the IP and port for lower position.)

 Laser cleaning machine rust removal 200w 500w

Picture 8

After click “deliver data”, you will get a notice that delivered succeed.

 Laser cleaning machine rust removal 200w 500w

Picture 9 

6. At this time, lower position will mark the content it received, and prompt will disappear then display as command.

 Laser cleaning machine rust removal 200w 500w

Picture 10

Above step 2, 5 for upper position, step 3, 4, 6 for lower position.

JCZ marking software’s communication method does not have data cache information and does not have return information. If you need more complex or safety communication method, we suggest you to edit your own communication program through secondary development library by using secondary development library to control marking communication to reach data.