ADSL is the most widely used broadband access method. Many users use ADSL
The routing function of MO-DEM enables multiple computers with PLC-based Internet timers to share Internet access to reduce Internet access fees. For the various tariffs provided by network operators, there are Internet access time issues except for users who use monthly packages.
Generally, the Internet timekeeping is realized by computer timekeeping software. These software are all for single computers that access the Internet by dialing. There is no good timekeeping method for using the routing function of ADSLMODEM to realize the sharing of Internet access by multiple computers. Because when ADSLMODEM works in routing mode, as long as the MODEM power is turned on, the MODEM will automatically dial up to connect to the network. Therefore, to calculate the Internet time, the power-on time of ADSLMO-DEM must be calculated.
The author used PLC to make an Internet timer device to monitor and control the shared Internet time.
Now let's take the example of two computers in a small office sharing the Internet. The standard is 240 hours per month, and the usage time is set from 8 am to 24 pm.
2. PLC wiring
Schneider's NEZATSX04CD06R8A small PLC (with clock function) and IHMI are used here
TSX08H02M two-line Chinese text display. PLC wiring is shown in Figure 1, the power supply is AC220V. ADSL
The power supply of the MODEM is controlled by the output contact Q0.0 of the PLC, the alarm output is controlled by the Q0.1 of the PLC, and the start time is controlled by the input contact 10.0 using a double-control switch. The two switches are installed in two offices with computers and are equipped with corresponding working indicators. When 10.0 is connected, if the conditions are met, Q0.0 is connected, so that the two offices can turn on or off ADSL according to their respective Internet needs.
The power supply of the MODEM is DC24V. It is connected to the PLC through the TSX08HMRUNCAB cable and the NEZA TSX04CD06R8A
The PLC communicates via the default communication protocol, and the daily and monthly available time is set via the HMI.
3. Programming
The main function of the timer is to control the Internet time to no more than 240 hours per month, that is, the average daily usage time is no more than 8 hours. The two computers are connected to the Internet as needed, and the Internet time periods and times are basically irregular, which may be staggered or overlapped; sometimes it may be used for more than ten hours a day, and sometimes only one or two hours a day. In order to reasonably control the Internet time, the Internet timer should have the following functions:
1. Accumulate the Internet time of the day and display it on the HMI, reset every 24 hours. The reset time is set to 8:00 a.m.; 2. Accumulate the Internet time of the month, and calculate the average daily usage time of the month (the cumulative number of Internet hours of the month)/(the number of days that have passed in the month) and display it on the HMI, reset once a month, and the reset time is 8:00 a.m. on the 1st of each month; 3. If the usage time of the day is greater than 8 hours, an alarm will be issued, but it can still be used; 4. If the usage time of the day is greater than 8 hours, and the average daily usage time of the month is also greater than 8 hours, the PLC will cut off the power supply of the MODEM and the Internet cannot continue; 5. Display the remaining hours of Internet access in the month.
The partial PLC program ladder diagram designed according to the above requirements is shown in Figure 2.
PLC has a clock function. Through the PLC scheduling module, the allowed working time is set from 8 am to 24 pm, and working is prohibited at other times. Call system word %SW50-%SW53 to display the current time and date. The reset function at 8 am every day is realized by calling system word %SW51, and the reset function at 1 am every month is realized by calling system word %SW52. Since PLC only provides minute pulse signals and the maximum preset value of the counter is 9999, 240 hours per month (14400 minutes) has exceeded its preset range. Therefore, it is necessary to build a 10-minute time base generator to calculate the monthly cumulative online time, that is, 240 hours per month is converted into 1440 10 minutes, and the maximum cumulative time per day does not exceed 1440 minutes, so %S7 (minute pulse signal) is still used as the counting time base. In order to facilitate user observation, the values calculated by PLC are converted into *** minutes and *** ten minutes when they are sent to HMI (text display). The engineering quantity conversion function of the HMI configuration software is used to convert them into the format of *** hours and *** days.
4. Instructions
Enable ADSL
The routing function of the MODEM is used to connect several computers that want to access the Internet with a five-port HUB (Ethernet hub) and perform relevant configurations to form a small local area network. Close either of the double-control switches, the output contact Q0.0 of the PLC is connected, and the ADSL
The MODEM is powered and connected to the network. The HMI displays the current date, the accumulated online time of the day, the accumulated online time of the month, and displays the remaining online time of the month in a countdown manner. If the online time exceeds the set time, the alarm light flashes (the alarm light flashes once per second for one minute) or the MODEM power is cut off, and the HMI will display the cause of the error.
Previous article:A PLC-controlled automatic reversing electroplating power supply
Next article:Application of PLC and AGC system in thickness control of aluminum foil
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Drone leader DJI is hiring for automotive software positions. Job location: Shenzhen.
- Design and implementation of temperature controller based on single chip microcomputer and fuzzy control
- Review summary: ART-Pi is here: high-performance H7 chip, DIY tool
- [RISC-V MCU CH32V103 Review] UART Serial Communication
- Bosch Micro Air Pressure Sensor BMP280
- Based on TI Sitara series AM437x ARM Cortex-A9 core board processor
- I have a red board of gd32f405vet6, please provide information
- Several Questions About Differential Amplifier Circuits
- #Idle Market#-----It is recommended to clearly mark the prices when selling things, so that everyone can save time.
- [Raspberry Pi Pico Review] - Start Programming