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.
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.