The 29-year-old had been hit with two Scottish Football Association charges, one of which was that he bet on six matches involving his own team.
A statement on his club's official website read: "This afternoon Michael Moffat's tribunal with the SFA Judicial Panel was held at Hampden Park. Michael was found guilty of the two charges and sanctioned with no fine and to serve a six-match suspension with immediate effect."
Moffat was charged with making seven bets on six matches involving Ayr, between August 3, 2012, and August 10, 2013. The notice of complaint did not allege that the player had bet against his team.
Moffat was also found guilty of betting on a total of 150 football matches, breaching the SFA's controversial rule 33, which forbids players from gambling on any football match around the world. The bets were made between February 19, 2012 and September 1, 2013.
Moffat, who has scored 18 goals this season, has been hit with an immediate ban which is twice as heavy as the one meted out to Rangers midfielder Ian Black in September, although Moffat has escaped a fine.
The former Inverness and Hearts player was fined £7,500 and given a 10-match ban, of which seven games were suspended, after admitting betting on matches involving his own team. The SFA charge stated that three of the bets concerned were on his club not to win.
Black was also issued with a censure after admitting betting on 147 other matches.
In both cases, the SFA stressed there was no evidence to suggest a breach of rule 34, which covers influencing the outcome of a game in order to benefit financially through betting.
Each SFA judicial panel is made up of three independent members composed from a large pool.