Assuming you are using R30iA or R30iB, please check connection between EAS1-EAS11 and EAS2-EAS21 (usually located on a board inside the panel on door itself). This should be a closed loop. You can check this by placing a jumper cable from EAS1-EAS11 and another jumper from EAS2-EAS21. If this fixes your safety gate issue, then you have issue with your safety lock / device. If this does not fix issue, you may have issue with the board or some other cable.
Your issue may be similar to srvo-004 fence open fault, here is troubleshooting on this fault from manual:
(4) SRVO-004 Fence open
(Explanation) In the automatic operation mode, the safety fence contact connected to EAS1-EAS11
or EAS2-EAS21 of TBOP4 is open.
(Action 1) When a safety fence is connected, close the safety fence.
(Action 2) Check the cables and switches connected between EAS1 and EAS11 and between
EAS2 and EAS21 of the terminal block TBOP4 on the panel board.
(Action 3) If the safety fence signal is not used, make a connection between EAS1 and EAS11
and between EAS2 and EAS21 of the terminal block TBOP4 on the panel board.
(Action 4) Check the mode switch. If trouble is found, replace the mode switch.
(Action 5) Replace the panel board.