How Can We Help?
< All Topics
Print

IO expansion of JX-BASIC

Question

Question

JX-BASIC has 8 input and output points, but this is not enough.
Can I add more?

Answer

Answer

We are planning to develop an expansion board in the future, but currently there is no expansion board.
(4ch expansion analog input: Scheduled to start selling in June 2024)
Consider a remote I/O system using Modbus/RTU using the RS-485 port.

As the number of expansion cards increases, the refresh rate of remote I/O will decrease.
Please download the sample program below.

Sample programm

Example of keeping input/output status during communication error

Download here
-Master-
Set the station number of Port3 to #1.
Write outputs Y101-Y116 of the master station to outputs Y1-Y16 of the slave station using the Send command.
Conversely, read inputs X1-X16 of the slave station to internal relays C21-C36 of the master station using the Receive command.
-Slave-
Set the station number of Port3 to #2.
Only END command.

Example of setting all input/output status to off when there is a communication error

Download here
-Master-
Flicker Y116 for 500mS.
If the execution result of the Receive command is an error, internal relays C21-C36 are all turned off.
-Slave-
Monitor Y16 and if it does not change for a certain period of time (600mS), turn off all Y1-Y8.

Inquiry

Table of Contents