[JAVA] I tried connecting the dot counter to the MZ platform by serial communication

Overview

MZ the dot counter requested by the local company Precision Press Kogyo Co., Ltd. I tried to connect to the platform.

RBI with a dot counter and a notebook PC connected (Fig. 1)

IMG_6331.JPG

--Connected to a laptop with a USB serial cable.

Appearance of the dot counter (Fig. 2)

IMG_6332.JPG

――The largest square device is the main body. ――The 7-segment LED displays the number of finished products, the number of hit points, and the set points from the top. --The small square device is the relay device. It is a circuit box for connecting the sensor that matches the main body and the machine tool. --A sensor (limit switch) is attached to the end of the cable extending from the relay device.

Sensor unit up (Fig. 3)

IMG_6334.JPG

――In addition to the limit switch, you can change the sensor according to the environment, such as a magnetic sensor.

Laptop side setup

You need to install the USB-serial conversion cable driver on Windows.

What I did on the MZ platform

This time, I only checked the operation with the sample program that is included in the MZ platform.

procedure

  1. The dot counter and the notebook PC were connected with a USB serial conversion cable (Fig. 1).
  2. Open the sample program (serial communication terminal.mzax) of the MZ platform (Capture 1).
  3. I pressed the execute button.
  4. Select the COM port and press the open button to connect (Capture 2).
  5. The sensor part of the dot counter (press the limit switch: Fig. 3) was operated.
  6. The number of dots from the dot counter is displayed on the communication monitor screen (Capture 3).
  7. When I pressed the close button, the connection was disconnected (Capture 4).

Capture screen

--Screen at startup (capture 1) start.PNG

--Connected (Capture 2) conncted.PNG

--Communication data was received on the MZ platform in response to the sensor (Capture 3) senddata.PNG

--I was able to disconnect with the close button (Capture 4). closed.PNG

Program screen output

The MZ program is output as a BMP file. Since the size of BMP is large, it is converted to JPG and posted. program.jpg

Return to MZ Platform page

-Try using the MZ platform that supports SME IT / IoT

History

--2018.02.13 Posted

Recommended Posts

I tried connecting the dot counter to the MZ platform by serial communication
I tried to implement the like function by asynchronous communication
I tried to build the environment little by little using docker
I tried to explain the method
[Java] I tried to make a maze by the digging method ♪
I tried to implement the Iterator pattern
I tried to summarize the Stream API
[Rails] I tried to raise the Rails version from 5.0 to 5.2
I tried to organize the session in Rails
I tried to set tomcat to run the Servlet.
I tried to investigate the mechanism of Emscripten by using it with the Sudoku solver
I tried to operate home appliances by holding a smartphone over the NFC tag
I tried to organize the cases used in programming
I tried to decorate the simple calendar a little
05. I tried to stub the source of Spring Boot
I tried to reduce the capacity of Spring Boot
I tried to implement the Euclidean algorithm in Java
I tried to introduce Bootstrap 4 to the Rails 6 app [for beginners]
[JDBC] I tried to access the SQLite3 database from Java.
[Rails] I implemented the validation error message by asynchronous communication!
[Swift] I tried to implement the function of the vending machine
I tried to summarize the basic grammar of Ruby briefly
I tried to build the environment of WSL2 + Docker + VSCode
I tried validation to unify the way hashtags are written
I tried upgrading from CentOS 6.5 to CentOS 7 with the upgrade tool
I tried to make it possible to set the delay for the UDP client of Android by myself
[Scala] [Java] I tried to fix the directory traversal vulnerability when unzipping Zip4j by bytecode operation.
I tried the Docker tutorial!
I tried the VueJS tutorial!
I tried the FizzBuzz problem
I tried to verify yum-cron
I tried to solve the problem of "multi-stage selection" with Ruby
I tried to summarize the words that I often see in docker-compose.yml
[Metal] I tried to figure out the flow until rendering using Metal
I tried to summarize what was asked at the site-java edition-
I tried to illuminate the Christmas tree in a life game
I tried to sort the data in descending order, ascending order / Rails
I tried to build the environment of PlantUML Server with Docker
I tried connecting to MySQL using JDBC Template with Spring MVC
[Ruby] Tonight, I tried to summarize the loop processing [times, break ...]
I tried to implement the image preview function with Rails / jQuery
Special Lecture on Multi-Scale Simulation: I tried to summarize the 5th
I tried to deepen my understanding of object orientation by n%
I tried connecting to Oracle Autonomous Database 21c with JDBC Thin
I tried to translate the error message when executing Eclipse (Java)
I tried to understand how the rails method "redirect_to" is defined
Special Lecture on Multi-Scale Simulation: I tried to summarize the 8th
I want to limit the input by narrowing the range of numbers
I tried to check the operation of gRPC server with grpcurl
I tried to understand how the rails method "link_to" is defined
I tried to summarize the methods of Java String and StringBuilder
I tried to move the Java compatible FaaS form "Fn Project"
I tried to solve the paiza campaign problem "Challenge from Kaito 813"
I tried to display the calendar on the Eclipse console using Java.
Special Lecture on Multi-Scale Simulation: I tried to summarize the 7th
I tried to solve the problem of Google Tech Dev Guide