Movatterモバイル変換


[0]ホーム

URL:


CN106540440B - Mahjong machine fault-tolerant control method - Google Patents

Mahjong machine fault-tolerant control method
Download PDF

Info

Publication number
CN106540440B
CN106540440BCN201510646704.0ACN201510646704ACN106540440BCN 106540440 BCN106540440 BCN 106540440BCN 201510646704 ACN201510646704 ACN 201510646704ACN 106540440 BCN106540440 BCN 106540440B
Authority
CN
China
Prior art keywords
time
stop
signal
double
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510646704.0A
Other languages
Chinese (zh)
Other versions
CN106540440A (en
Inventor
韦琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by IndividualfiledCriticalIndividual
Priority to CN201510646704.0ApriorityCriticalpatent/CN106540440B/en
Publication of CN106540440ApublicationCriticalpatent/CN106540440A/en
Application grantedgrantedCritical
Publication of CN106540440BpublicationCriticalpatent/CN106540440B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

The invention discloses a fault-tolerant control method of a mahjong machine, which comprises a fault-tolerant control method and a fault early warning method of a single stop position mechanism and/or a double stop position mechanism.

Description

Mahjong machine fault-tolerant control method
Technical Field
The invention relates to a fault-tolerant control method for a mahjong machine.
Background
The existing mahjong machine mechanism is controlled by a positioning sensor signal to work. For example, the central lifting mechanism controls the lifting motor to stop at an upper position and a lower position (also called initial position) respectively by an upper sensor signal and a lower sensor signal; the square mahjong rising mechanism controls a mahjong rising motor to stop at an initial position according to signals of an initial position sensor; the mechanism with two stop positions is called a double-stop-position mechanism, and the mechanism with only one stop position is called a single-stop-position mechanism. The four-direction mahjong lifting mechanism of the eight-port machine has one more middle position than that of the four-port machine, which is also called a double-stop position mechanism, and a horizontal pushing machine head of the four-port machine only has a machine head opening position and a machine head closing position (also called an initial position), and is also a double-stop position mechanism.
The steps of the central lifting mechanism of the mahjong machine for completing the lifting work are as follows:
after the lifting key is pressed, the lifting motor is started, and after the upper sensor has a signal, the lifting motor stops at the upper position and opens the large-disc card inlet; after the cards are pushed into the large plate, the lifting key is pressed, the lifting motor is started, and after the lower sensor has a signal, the lifting motor stops the lower position, and the card inlet of the large plate is closed.
The mahjong machine four-direction tile lifting mechanism completes the tile lifting work steps as follows:
after the lifting mechanism finishes the card feeding work, the square card lifting motor is started, and after the initial sensors of each card lifting motor have signals, the initial positions of the card lifting motors of each card lifting motor are respectively stopped, so that the card lifting work is finished.
Once the mahjong machine is affected with damp or used for a long time, the fault of poor contact and occasional open circuit of each sensor line is easy to occur, and after each sensor is occasionally opened, the mechanism can continuously search the stop position signal, so that the next step of work cannot be carried out.
The above situation can be seen that the signals of each sensor are important and unique signals of the stop positions of each mechanism of the mahjong machine, and once the signals are lost, the mahjong machine cannot normally complete corresponding work.
Disclosure of Invention
The invention aims to solve the technical problem that a fault-tolerant control method of a mahjong machine is provided aiming at the defects in the prior art, and the defects that the existing mahjong machine needs strong logic detection capability after signal faults of a double-stop mechanism and a single-stop mechanism of the mahjong machine, and the mahjong machine cannot be continuously used once the signal faults of the sensors occur in the mahjong machine mechanism are overcome.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: a mahjong machine fault-tolerant control method comprises the following steps:
A. the starting mechanism runs, checking whether the running basic time is valid? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time of the sensor signals of each mechanism from the starting of the previous stop position to the stopping of the next position, calculating the average basic time T of M times (200 is more than or equal to M and more than or equal to 1), storing data, and entering the step C;
C. in the normal operation process of each mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. multiplying the time T by 2 to obtain corresponding mechanism preparation stop time 2T, multiplying the time T by 3 to obtain corresponding mechanism preparation stop time 3T, multiplying the time T by 3 to obtain 3T, dividing the 3T time into TX and TY, namely TX + TY is 3T, and taking TX as the corresponding mechanism preparation stop time/adding the time T to the multiple operation 1-turn time to obtain the corresponding mechanism preparation stop time T + 1-turn time; when the corresponding sensor signals of the prepared stop time 2T/3T/TX/T +1 circles of time of the motor of each mechanism are started from the previous stop position and are respectively continuously abnormal, simulating and determining the motor of the stop mechanism of each mechanism position according to the prepared stop time 2T/3T/TX/T +1 circles of time of each mechanism, wherein the TY time stop mechanism is operated after the lifting key is pressed according to the time stop of TX, the card arranging program is operated in a fault-tolerant mode, and the continuous card arranging of the mahjong machine is not influenced; continuously simulating and determining the position stop mechanism motor according to the prepared stop time of 2T/3T/T +1 circles, and after the fault-tolerant operation card arranging program is operated for N times (N is more than or equal to 0);
E. simulating and determining a position stop mechanism motor according to the basic time T, and performing fault-tolerant operation of a mahjong tile arranging program without influencing continuous mahjong tile arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
the fault-tolerant control method of the mahjong machine is characterized by comprising the following steps:
for a single stop position mechanism, comprising the steps of:
A. start the operation of the single-stop position mechanism, check if the operation base time is valid? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time of starting the sensor signal of each single stop position mechanism from the initial position and stopping the signal again when the signal returns to the initial position, solving the average basic time T of M times (200 is more than or equal to M is more than or equal to 1), storing data, and entering the step C;
C. in the normal operation process of each mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. multiplying the time T by 2 to obtain corresponding mechanism prepared stopping time 2T, multiplying the time T by 3 to obtain corresponding mechanism prepared stopping time 3T, multiplying the time T by 3 to obtain 3T, dividing the 3T time into TX and TY, namely TX + TY is 3T, and taking TX as the corresponding mechanism prepared stopping time; when the corresponding sensor signals of the preset stop time 2T/3T/TA time after the starting of each mechanism motor from the previous stop position respectively continuously abnormal, the mechanism motors at the positions of each mechanism are determined according to the preset stop time 2T/3T/TX simulation of each mechanism, wherein the TY time stop mechanism is operated after the lifting key is pressed according to the TX time stop, the mahjong tile arranging program is operated in a fault-tolerant mode, and the mahjong machine is not influenced to continuously arrange the mahjong tiles; continuously simulating and determining a position stop mechanism motor according to the prepared stop time 2T/3T circle, and after carrying out fault-tolerant operation and card arranging program for N times (N is more than or equal to 0);
E. simulating and determining a position stop mechanism motor according to the basic time T, and performing fault-tolerant operation of a mahjong tile arranging program without influencing continuous mahjong tile arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
and/or for a dual stop position mechanism, comprising the steps of:
A. start the operation of the double-stop mechanism, check if the basic operation time is valid for each operation phase? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time of the sensor signals of each double-stop position mechanism from the initial stop position to the middle stop position and the interval time of the sensor signals from the middle stop position to the initial stop position, calculating the average basic time TA and TB of M times (200 is more than or equal to M and more than or equal to 1), storing data, and entering the step C;
C. in the normal operation process of each mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. respectively adding the sum of TA and TB to the time TA and the time TB to obtain corresponding one-way preparation stopping time 2TA + TB and 2TB + TA of the corresponding mechanism; when the initial stop position signals and/or the middle stop position signals of the mechanisms are abnormal, the corresponding mechanisms are controlled to continue to operate, the initial position/middle position stop mechanism motors of the mechanisms are determined according to the simulation of the initial stop position signals and/or the middle stop position signals of the mechanisms after the preparatory stop time 2TA + TB and/or 2TB + TA of the motors of the mechanisms from the stop position, the mahjong tile arranging program is in fault-tolerant operation, and the mahjong machine is not influenced to continue to arrange the mahjong tiles; continuously simulating and determining a position stop mechanism motor according to the prepared stop time, and after carrying out fault-tolerant operation and card arranging for N times (N is more than or equal to 0);
E. continuing to simulate and determine the initial position/middle position stop mechanism motor according to the basic time TA and/or TB delay, and performing fault-tolerant operation on the mahjong tile arranging program without influencing the mahjong tile arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
the fault-tolerant control method of the mahjong machine further comprises the following steps:
when the single-stop position mechanism control program is operated and the basic time T is invalid, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and alarm time, and starting the mechanism to operate;
F. running protection time;
G. is the sensor active? If yes, directly entering the step I; otherwise, entering step H;
H. is the alarm time determined? If not, returning to the step G; if yes, reporting a mechanism fault code;
I. the single-stop mechanism runs in place, the mechanism stops running, and the running time is recorded; if the running time is successfully recorded for M times (200 is more than or equal to M and more than or equal to 1), recording the average value of the running time of the mechanism for M times, and taking the average value as the basic time T of the mechanism running;
when the single-stop position mechanism control program is operated and the basic time T is effective, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and preparation stop time/average basic time, and starting the mechanism to operate;
F. running protection time;
G. is the sensor active? If yes, directly entering the step I; otherwise, entering step H;
H. preparation stop time/average base time to? If not, returning to the step G; if yes, entering a step I, adopting TX and TX + TY being 3T as the preparatory stop time, and operating a TY time stop mechanism motor after pressing the lifting key to enter the step I;
I. the single stop mechanism runs in place, and the mechanism stops running; the running time can be recorded at the same time, if the program does not pass through the H step and the running time is successfully recorded for Z times (Z is more than or equal to 1000 and more than or equal to M), the average value of the running time of the mechanism can be recorded for Z times, and the last record is refreshed to be used as the basic time T of the mechanism running later;
the fault-tolerant control method of the mahjong machine further comprises the following steps:
when the first stage step of the double-stop position mechanism control program is operated and the basic time TA is invalid, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (1) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (1) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting alarm time, and starting the mechanism to operate;
F. is there a signal from the sensor (2) determined? If yes, directly entering the step H; if not, entering step G;
G. is the alarm time determined? If not, returning to the step F; if yes, reporting a mechanism fault code;
H. the double-stop mechanism runs to the middle stop position, stops running and records the running time of the double-stop mechanism from the initial stop position to the middle stop position; if the running time is successfully recorded for M times (200 is more than or equal to M and more than or equal to 1), recording the average value of the running time of the mechanism for M times, and taking the average value as the basic time TA of the first-stage running of the mechanism;
when the second stage step of the double-stop position mechanism control program is operated and the basic time TB is invalid, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (2) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (2) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting alarm time, and starting the mechanism to operate;
F. is there a signal from the sensor (1) determined? If yes, directly entering the step H; if not, entering step G;
G. is the alarm time determined? If not, returning to the step F; if yes, reporting a mechanism fault code;
H. the double-stop mechanism returns to the initial position after running, the mechanism stops running, and the running time of the double-stop mechanism returning to the initial stop position from the middle stop position is recorded; if the running time is successfully recorded for M times (200 is more than or equal to M and more than or equal to 1), recording the average value of the running time of the mechanism for M times, and taking the average value as the basic time TB of the second-stage running of the mechanism;
when the first stage step of the double-stop position mechanism control program is operated and the basic time TA is effective, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (1) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (1) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting a preparation stop time/average basic time, and starting the mechanism to operate;
F. is there a signal from the sensor (2) determined? If yes, directly entering the step H; if not, entering step G:
G. preparation stop time/average base time to? If not, returning to the step F; if yes, entering step H;
H. the double-stop mechanism operates to the middle stop position, and the mechanism stops operating; the running time of the double-stop mechanism from the initial stop position to the middle stop position can be recorded at the same time, if the program does not pass through H steps and the running time is successfully recorded for Z times (Z is more than or equal to 1000 and more than or equal to M), the average value of the running time of the mechanism can be recorded for Z times, and the last record is refreshed to be used as the basic time TA of the first-stage running of the mechanism later;
when the second stage step of the double-stop position mechanism control program is operated and the basic time TB is effective, the method comprises the following steps:
A. the program starts, and it is determined in advance whether or not the sensor (2) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (2) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting a preparation stop time/average basic time, and starting the mechanism to operate;
F. is there a signal from the sensor (1) determined? If yes, directly entering the step H; if not, entering step G;
G. preparation stop time/average base time to? If not, returning to the step F; if yes, entering step H;
H. the double-stop mechanism returns to the initial position after running, and the mechanism stops running; the running time of the double-stop mechanism returning to the initial stop position from the middle stop position can be recorded at the same time, if the program does not pass through the H step and the running time is successfully recorded for Z times (1000 is more than or equal to Z and more than or equal to M), the average value of the running time of the mechanism can be recorded for Z times, and the last record is refreshed to be used as the basic time TB for the second-stage running of the mechanism later;
the fault-tolerant control method of the mahjong machine further comprises the following steps: after the signal of a plurality of same single-stop position mechanisms in different directions is abnormal, a normal mechanism and an abnormal mechanism can run asynchronously, and each abnormal mechanism can run independently;
the fault-tolerant control method of the mahjong machine further comprises the following steps: aiming at the signal abnormality of the single-stop position mechanism, the single-stop position mechanism can be operated for Y times (Y is more than or equal to 1) according to the time delay of 2T after each X (X is less than or equal to 500) deck card is washed so as to prompt the signal abnormality of the single-stop position mechanism;
the fault-tolerant control method of the mahjong machine further comprises the following steps: aiming at the abnormal signal of the double-stop mechanism, the double-stop mechanism can be operated for Y times (Y is more than or equal to 1) according to the time delay of T +1 circle after each X (X is less than or equal to 500) deck card is washed so as to prompt the abnormal signal of the double-stop mechanism.
Drawings
FIG. 1 is a flow chart of the operation of the original design card raising mechanism;
FIG. 2 is a flow chart of the lifting operation of the lifting mechanism of the prior design;
FIG. 3 is a flow chart of the descending operation of the lifting mechanism of the original design;
FIG. 4 is a general operational flow diagram of an embodiment of the present invention;
FIG. 5 is a flow chart of a single stop mechanism operation according to one embodiment of the present invention;
FIG. 6 is a flowchart B of the operation of the single-stop mechanism according to one embodiment of the present invention;
FIG. 7 is a flowchart illustrating a first stage operation of the dual-stop mechanism according to one embodiment of the present invention;
FIG. 8 is a flowchart of a second stage operation of the dual-stop mechanism in accordance with one embodiment of the present invention;
FIG. 9 is a flowchart of a first stage operation of a dual-stop mechanism according to an embodiment of the present invention;
FIG. 10 is a flowchart B of a second stage operation of the dual-stop mechanism in accordance with one embodiment of the present invention;
Detailed Description
An embodiment of a fault-tolerant control method for a tile lifting mechanism of a mahjong machine comprises the following steps:
the card lifting mechanism aiming at the single stop position:
A. start the operation of the card raising mechanism and check whether the operation basic time is valid? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time of starting the sensor signals of each card lifting mechanism from the initial position and stopping the signals again from the initial position, calculating the average basic time of 10 times of 3 seconds/3.1 seconds, storing data, and entering the step C;
C. in the normal operation process of each card lifting mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the card lifting mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. multiplying the time 3 seconds/3.1 seconds by 2 respectively to obtain corresponding mechanism preparation stopping time 6 seconds/6.2 seconds which are respectively corresponding mechanism preparation stopping time; when the corresponding sensor signals of the prepared stopping time of 6 seconds/6.2 seconds after the motors of each mechanism are started from the previous stopping position are respectively and continuously abnormal, simulating and determining the motors of the stopping mechanisms of the mechanism positions of each mechanism according to the prepared stopping time of 6 seconds/6.2 seconds of each mechanism, (the normal direction of the signals continues to press the stopping mechanisms) to carry out fault-tolerant operation of the mahjong arranging program, and the mahjong machine is not influenced to continue arranging mahjong; continuing to simulate and determine a position stop mechanism motor according to the prepared stop time, and after the fault-tolerant operation card arranging program is carried out for 0 time;
E. then, simulating and determining a position stop mechanism motor according to the 3 second/3.1 second delay of the basic time, and carrying out fault-tolerant operation on a mahjong arranging program without influencing the continuous mahjong arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
when the card raising mechanism control program is operated and the basic time is invalid at 3 seconds/3.1 seconds, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and alarm time, and starting the mechanism to operate;
F. running protection time;
G. is the sensor active? If yes, directly entering the step I; otherwise, entering step H;
H. is the alarm time determined? If not, returning to the step G; if yes, reporting a mechanism fault code;
I. the card lifting mechanism runs in place, stops running and records running time; if the running time is successfully recorded for 10 times continuously, recording the average value of the running time of the mechanism at the 10 th time, and taking the average value as the basic time of the following four-party mechanism running of 3 seconds/3.1 seconds;
when the card raising mechanism control program is operated and the basic time is 3 seconds/3.1 seconds effective, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and preparation stop time (6 seconds/6.2 seconds)/average basic time (3 seconds/3.1 seconds), setting preparation stop time when the previous mechanism is normal, setting basic time when the previous mechanism is abnormal, and starting the mechanism to operate;
F. running protection time;
G. is the sensor active? If yes, directly entering the working step; otherwise, entering step H;
H. preparation stop time/average base time to? If not, returning to the step G; if yes, entering step I;
I. the card lifting mechanism runs in place, and the mechanism stops running; the running time can be recorded at the same time, for example, the running time is not recorded in step H and is recorded for 100 times continuously, the average value of the running time of the mechanism can be recorded at the 100 th time, and the last record is refreshed to be used as the basic time T of the mechanism running later;
after the signal of a plurality of same single-stop position mechanisms in different directions is abnormal, a normal mechanism and an abnormal mechanism can run asynchronously, and each abnormal mechanism can run independently;
aiming at the signal abnormality of the single-stop position mechanism, the single-stop position mechanism can be operated for 2 times according to the time delay of 6 seconds/6.2 seconds after every 200 decks are shuffled so as to prompt the signal abnormality of the single-stop position mechanism.
An embodiment of a fault-tolerant control method of a tile lifting mechanism of a mahjong machine comprises the following steps:
the card lifting mechanism aiming at the single stop position:
A. start the operation of the card raising mechanism and check whether the operation basic time is valid? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time of starting the sensor signals of each card lifting mechanism from the initial position and stopping the signals again from the initial position, calculating the average basic time of 10 times of 3 seconds/3.1 seconds, storing data, and entering the step C;
C. in the normal operation process of each card lifting mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the card lifting mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. multiplying the time 3 s/3.1 s by 3 respectively to obtain 9 s/9.3 s, dividing the time 9 s/9.3 s into 4.4 s +4.6 s/4.55 s +4.75 s, and setting the corresponding mechanism to stop for 4.4 s/4.55 s; when the corresponding sensor signals of the prepared stop time of 4.4 seconds/4.55 seconds of each mechanism motor are respectively continuously abnormal after the motor of each mechanism is started from the previous stop position, simulating and determining the motor of each mechanism position stop mechanism according to the prepared stop time of 4.4 seconds/4.55 seconds of each mechanism, and respectively operating the motor of each mechanism position stop mechanism after the lifting key is pressed, and then respectively operating the motor of each mechanism stop mechanism for 4.6 seconds/4.75 seconds, (the signal normal side continuously presses the signal stop mechanism) to operate a fault-tolerant operation card arranging program, so that the continuous card arranging of the mahjong machine is not; continuing simulating and determining a position stop mechanism motor according to the prepared stop time, and after the fault-tolerant operation card arranging program is carried out for 0 time;
E. then, simulating and determining a position stop mechanism motor according to the 3 second/3.1 second delay of the basic time, and carrying out fault-tolerant operation on a mahjong arranging program without influencing the continuous mahjong arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
when the card raising mechanism control program is operated and the basic time is invalid at 3 seconds/3.1 seconds, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and alarm time, and starting the mechanism to operate;
F. running protection time;
G. is the sensor active? If yes, directly entering the step I; otherwise, entering step H;
H. is the alarm time determined? If not, returning to the step G; if yes, reporting a mechanism fault code;
I. the card lifting mechanism runs in place, stops running and records running time; if the running time is successfully recorded for 10 times continuously, recording the average value of the running time of the mechanism at the 10 th time, and taking the average value as the basic time of the following four-party mechanism running of 3 seconds/3.1 seconds;
when the card raising mechanism control program is operated and the basic time is 3 seconds/3.1 seconds effective, the method comprises the following steps:
A. the program starts, and determines in advance whether the sensor signal is valid? If not, directly entering step E; if the sensor signal is valid, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then determine if the sensor signal is valid? If the result is invalid, directly entering the step E; if the result is valid, entering the step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting operation protection time and preparation stop time (4.4 seconds/4.55 seconds)/average basic time (3 seconds/3.1 seconds), setting preparation stop time when the previous mechanism is normal, setting basic time when the previous mechanism is abnormal, and starting operation of the mechanism;
F. running protection time;
G. is the sensor active? If yes, directly entering the step I; otherwise, entering step H;
H. preparation stop time/average base time to? If not, returning to the step G; if yes, the motor of the mechanism is stopped after the lifting key is pressed for 4.6 seconds/4.75 seconds, and the step I is started;
I. the card lifting mechanism runs in place, and the mechanism stops running; the running time can be recorded at the same time, for example, the running time is not recorded in step H and is recorded for 100 times continuously, the average value of the running time of the mechanism can be recorded at the 100 th time, and the last record is refreshed to be used as the basic time T of the mechanism running later;
after the signal of a plurality of same tile lifting mechanisms in different directions is abnormal, the normal mechanism and the abnormal mechanism can run asynchronously, and each abnormal mechanism can also run independently;
aiming at the abnormal signal of the card lifting mechanism, the card lifting mechanism can also be operated for 2 times according to the time delay of 6 seconds/6.2 seconds after every 200 cards are shuffled so as to prompt the abnormal signal of the single-stop position mechanism.
An embodiment of a fault-tolerant control method of a lifting mechanism of a mahjong machine comprises the following steps:
lifting mechanism aiming at double stop positions
A. Start the operation of the lifting mechanism and check whether the operation basic time of each operation stage is valid? If the result is valid, directly entering the step C; if the result is invalid, entering step B;
B. respectively recording the interval time from the starting of a sensor signal of the lifting mechanism from an initial stop position to the stopping of an intermediate stop position and the interval time from the starting of the intermediate stop position to the stopping of the initial stop position, calculating the average basic time of 10 times, namely 1.2 seconds and 1.3 seconds, storing data, and entering the step C;
C. in the normal operation process of each mechanism, when signals of each sensor are normal, determining the position according to the signals of each sensor, stopping the operation of a motor of the mechanism, and repeating A, C steps; when the signals of the sensors are abnormal, the step D is carried out;
D. taking the time 1.2 seconds and 1.3 seconds plus the sum of TA and TB 2.5 seconds as the corresponding one-way preparation stop time 3.7 seconds and 3.8 seconds of the corresponding mechanism; when the initial stop position signals and/or the middle stop position signals of the mechanisms are abnormal, the corresponding mechanisms are controlled to continue to operate, the initial position/middle position stop mechanism motors of the mechanisms are determined according to the simulation of 3.7 seconds and/or 3.8 seconds of the prepared stop time of the motors of the mechanisms after starting from the stop positions, and the mahjong tile arranging program is in fault-tolerant operation and does not influence the mahjong machine to continue to arrange the mahjong tiles; continuing to simulate and determine a position stop mechanism motor according to the prepared stop time, and performing fault-tolerant operation for 1 time;
E. continuing to simulate and determine the initial position/middle position stop mechanism motor according to the 3.7 second and/or 3.8 second delay of the basic time, and performing fault-tolerant operation on the mahjong tile arranging program without influencing the continuous mahjong tile arranging of the mahjong machine;
F. when the signal is abnormal, repeating the step E;
G. when the signal returns to normal, the program of the mahjong machine returns to the step A again;
when the first stage step of the control program of the lifting mechanism is operated and the basic time is invalid at 3.7, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (1) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (1) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting alarm time, and starting the mechanism to operate;
F. is there a signal from the sensor (2) determined? If yes, directly entering the step H; if not, entering step G;
G. is the alarm time determined? If not, returning to the step F; if yes, reporting a mechanism fault code;
H. when the lifting mechanism runs to the middle stop position, the mechanism stops running, and the running time of the lifting mechanism from the initial stop position to the middle stop position is recorded; if the running time is successfully recorded for 10 times, recording the average value of the running time of the mechanism at the 10 th time as the basic time TA of the first-stage running of the mechanism later;
when the second stage step of the control program of the lifting mechanism is operated and the basic time is invalid at 3.8, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (2) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (2) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting alarm time, and starting the mechanism to operate;
F. is there a signal from the sensor (1) determined? If yes, directly entering the step H; if not, entering step G;
G. is the alarm time determined? If not, returning to the step F; if yes, reporting a mechanism fault code;
H. the lifting mechanism returns to the initial position after running, the mechanism stops running, and the running time of the lifting mechanism returning to the initial stop position from the intermediate stop position is recorded; if the running time is successfully recorded for 10 times, recording the average value of the running time of the mechanism at the 10 th time as the basic time TB of the second-stage running of the mechanism later;
when the first stage step of the control program of the lifting mechanism is operated and the basic time is 3.7 effective, the following steps are carried out:
A. the program starts, and it is determined in advance whether or not the sensor (1) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (1) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting the preparation stop time to be 3.7 seconds/the average basic time to be 1.2 seconds, and starting the mechanism to run;
F. is there a signal from the sensor (2) determined? If yes, directly entering the step H; if not, entering step G;
G. preparation stop time 3.7 seconds/average base time 3.2 seconds to? If not, returning to the step F; if yes, entering step H;
H. when the lifting mechanism runs to the middle stop position, the mechanism stops running; the running time of the lifting mechanism from the initial stop position to the middle stop position can be recorded at the same time, if the program does not pass through the H step and the running time is successfully recorded for 100 times, the average value of the running time of the mechanism can be recorded at the 100 th time, and the last record is refreshed to be used as the basic time TA of the first-stage running of the mechanism later;
when the second stage step of the control program of the lifting mechanism is operated and the basic time is effective for 3.8 seconds, the method comprises the following steps:
A. the program starts, and it is determined in advance whether or not the sensor (2) has a signal? If not, directly entering the step E; if yes, entering step B;
B. setting the effective alarming time of the sensor, and starting the mechanism to operate;
C. then judging whether the sensor (2) has a signal? If not, directly entering step F; if yes, entering step D;
D. is the alarm time determined? If not, returning to the step C; if yes, reporting a mechanism fault code;
E. setting the preparation stop time to be 3.8 seconds/the average basic time to be 1.3 seconds, and starting the mechanism to run;
F. is there a signal from the sensor (1) determined? If yes, directly entering the step H; if not, entering step G;
G. preparation stop time 3.8 seconds/average base time 1.3 seconds to? If not, returning to the step F; if yes, entering step H;
H. the lifting mechanism returns to the initial position after running, and the mechanism stops running; the running time of the lifting mechanism returning to the initial stop position from the intermediate stop position can be recorded at the same time, if the program does not pass through the H step and the running time is successfully recorded for 100 times, the average value of the running time of the mechanism can be recorded at the 100 th time, and the last record is refreshed to be used as the basic time TB of the second-stage running of the mechanism;
aiming at the abnormal signal of the lifting mechanism, the lifting mechanism can also be operated for 1 time according to the time delay of 3.7 seconds/3.8 seconds after every 200 decks are shuffled so as to prompt the abnormal signal of the lifting mechanism.

Claims (33)

D. multiplying the time T by 2 to obtain corresponding mechanism preparation stop time 2T, multiplying the time T by 3 to obtain corresponding mechanism preparation stop time 3T, multiplying the time T by 3 to obtain 3T, dividing the 3T time into TX and TY, namely TX + TY is 3T, and taking TX as the corresponding mechanism preparation stop time/adding the time T to the multiple operation 1-turn time to obtain the corresponding mechanism preparation stop time T + 1-turn time; when the corresponding sensor signals of the prepared stop time 2T/3T/TX/T +1 circles of time of the motor of each mechanism are started from the previous stop position and are respectively continuously abnormal, simulating and determining the motor of the stop mechanism of each mechanism position according to the prepared stop time 2T/3T/TX/T +1 circles of time of each mechanism, wherein the TY time stop mechanism is operated after the lifting key is pressed according to the time stop of TX, the card arranging program is operated in a fault-tolerant mode, and the continuous card arranging of the mahjong machine is not influenced; continuing to simulate and determine the motor of the position stop mechanism according to the prepared stop time of 2T/3T/T +1 circles, and performing fault-tolerant operation for N times;
D. multiplying the time T by 2 to obtain corresponding mechanism prepared stopping time 2T, multiplying the time T by 3 to obtain corresponding mechanism prepared stopping time 3T, multiplying the time T by 3 to obtain 3T, dividing the 3T time into TX and TY, namely TX + TY is 3T, and taking TX as the corresponding mechanism prepared stopping time; when the corresponding sensor signals of the preset stop time 2T/3T/TA time after the starting of each mechanism motor from the previous stop position respectively continuously abnormal, the mechanism motors at the positions of each mechanism are determined according to the preset stop time 2T/3T/TX simulation of each mechanism, wherein the TY time stop mechanism is operated after the lifting key is pressed according to the TX time stop, the mahjong tile arranging program is operated in a fault-tolerant mode, and the mahjong machine is not influenced to continuously arrange the mahjong tiles; continuously simulating and determining a position stop mechanism motor according to the prepared stop time 2T/3T circle, and performing fault-tolerant operation for N times;
D. respectively adding the sum of TA and TB to the time TA and the time TB to obtain corresponding one-way preparation stopping time 2TA + TB and 2TB + TA of the corresponding mechanism; when the initial stop position signals and/or the middle stop position signals of the mechanisms are abnormal, the corresponding mechanisms are controlled to continue to operate, the initial position/middle position stop mechanism motors of the mechanisms are determined according to the simulation of the initial stop position signals and/or the middle stop position signals of the mechanisms after the preparatory stop time 2TA + TB and/or 2TB + TA of the motors of the mechanisms from the stop position, the mahjong tile arranging program is in fault-tolerant operation, and the mahjong machine is not influenced to continue to arrange the mahjong tiles; continuing to simulate and determine a position stop mechanism motor according to the prepared stop time, and performing fault-tolerant operation on the mahjong tile arranging program for N times;
CN201510646704.0A2015-09-222015-09-22Mahjong machine fault-tolerant control methodExpired - Fee RelatedCN106540440B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510646704.0ACN106540440B (en)2015-09-222015-09-22Mahjong machine fault-tolerant control method

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510646704.0ACN106540440B (en)2015-09-222015-09-22Mahjong machine fault-tolerant control method

Publications (2)

Publication NumberPublication Date
CN106540440A CN106540440A (en)2017-03-29
CN106540440Btrue CN106540440B (en)2020-06-09

Family

ID=58364787

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510646704.0AExpired - Fee RelatedCN106540440B (en)2015-09-222015-09-22Mahjong machine fault-tolerant control method

Country Status (1)

CountryLink
CN (1)CN106540440B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US3899178A (en)*1974-04-221975-08-12Hideo WatanabeAutomatic game block shuffling, aligning and table top arraying machine
CN202709142U (en)*2012-08-202013-01-30中国大唐集团环境技术有限公司Steam soot- blower intelligent control device
CN103961866A (en)*2014-05-142014-08-06韦琳Fault warning prompt method for mahjong machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US3899178A (en)*1974-04-221975-08-12Hideo WatanabeAutomatic game block shuffling, aligning and table top arraying machine
CN202709142U (en)*2012-08-202013-01-30中国大唐集团环境技术有限公司Steam soot- blower intelligent control device
CN103961866A (en)*2014-05-142014-08-06韦琳Fault warning prompt method for mahjong machine

Also Published As

Publication numberPublication date
CN106540440A (en)2017-03-29

Similar Documents

PublicationPublication DateTitle
CN110794227B (en)Fault detection method, system, device and storage medium
JP3839478B2 (en) Method for analyzing process data of technical equipment
US3908117A (en)Method and apparatus for monitoring and diagnosing troubles in sequential control operations
JPWO2020235581A5 (en)
CN105467879B (en)It is a kind of to control device, the method and system that rewinding machine inspection rejects is shut down
CN111016964B (en)Multi-mode intelligent identification and confirmation platform system for turnout state
CN109583754A (en)A kind of maintenance cost evaluation method, computer equipment and storage medium
CN106540440B (en)Mahjong machine fault-tolerant control method
CN107915095A (en)The method and apparatus for performing cabling operations for the reel for controlling stacker-reclaimer
CN105080133B (en)Mahjong machine control method and fault prompting and alarming method
CN107467181A (en)A kind of foodstuff drying device intelligent control method and grain intelligence furnace drying method
CN108249239B (en) Elevator control method and system
CN112906253A (en)Railway signal dynamic simulation detection method and system
CN107479493A (en)A kind of control system and control method of lift-sliding parking equipment
JP2013205847A (en)Plant monitoring man-machine device
CN114415627B (en)Full working face hydraulic support electrohydraulic control system testing method and equipment
JP2019200650A5 (en)
CN109907714B (en)Washing heating control method and device of dish washing machine
CN106540441A (en)A kind of double stop mechanism fault tolerant control methods of mahjong machine
JP2001306140A (en)Abnormality detection system
TW202216383A (en)Safety monitor system and method for diagnosing abnormality of the same in robot
JPS5663612A (en)Controller with process fault diagnostic function
CN114236256A (en)Test system, test method and test instrument for electromagnetic devices
SU1534751A1 (en)Device for checking pulse trains
CN218675710U (en)Boarding bridge control device and boarding bridge safety control system

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20200609


[8]ページ先頭

©2009-2025 Movatter.jp