How Can We Help?
< All Topics
Print

AD/DA expansion of JX-BASIC-EX2

Question

Question

JX-BASIC-EX2 has analog inputs and outputs, but I don’t have 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.
(Or Modbus/TCP using the ethernet 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 (Serial Port)

Example of keeping AD/DA data during communication error

Download here
-Master-
Set the station number of Port3 to #1.
The Send command writes the data registers DF15-DF16 of the master station to the data registers DF5-DF6 that are set as the analog outputs of the slave stations.
Conversely, the Receive command reads the data registers DF1-DF4 that are set as the analog inputs of the slave stations to the data registers DF11-DF14 of the master station.
-Slave-
Set the station number of Port3 to #2.
Configure the analog input/output settings.
Only END command.

Example of setting AD/DA data to ZERO when there is a communication error

Download here
-Master-
The scan counter (SD9) is copied to DF17 and written together with the analog output data (DF15-DF16) using the Send command.
If the execution of the Receive command results in an error, the analog input registers DF11-DF14 are set to zero.
-Slave-
DF17 is monitored, and if there is no change for a certain period of time (1Sec), the analog output data DF15-DF16 is set to zero.

Sample programm (Ethernet Port)

Set the IP address for the master and slave.
Change the port for the ladder’s Send/Receive commands to “Port1.”

Inquiry

Table of Contents