PROBLEM TO BE SOLVED: To provide an electric fence allowing a person to go through the fence at a desired position without being electrified, a method for controlling the electric fence, a power-supply unit for the electric fence, a voltage generator for the electric fence, and a control circuit for the electric fence.SOLUTION: When a power switch 55 is on and a first electric wire 2 is not grounded by a connector 23, voltage of a power supply 60 is applied to the voltage generator 56 via a B contact 54 of a relay and voltage is generated. The generated voltage is applied to a second electric wire 3 (bare electric wires (3A-3D)). If a person or wild animal touches the bare electric wires (3A-3D), the person or wild animal receives impact. A ground bar 23B of the connector 23 is inserted into the ground, and a hook 23A of the connector 23 is hooked on the first electric wire 2 to ground the first electric wire 2. As a result, a coil 53 of the relay is excited and the B contact 54 of the relay is opened, so that the voltage of the power supply 60 is not applied to the voltage generator 56 and generation of voltage is stopped.COPYRIGHT: (C)2012,JPO&INPIT【課題】人が感電することなく所望の位置で通り抜けることができる電気柵、電気柵の制御方法、電気柵の電源装置、電気柵の電圧発生器、並びに電気柵の制御回路を提供する。【解決手段】電源スイッチ55が「オン」であり、接続器具23によって第1の電線2を接地していない場合、電圧発生器56にはリレーのB接点54を通って電源60の電圧が印加され、電圧が発生する。発生した電圧は、第2の電線3(裸電線(3A~3D))に印加され、人や野生動物などが裸電線(3A~3D)に接触すると衝撃を受ける。接続器具23のアース棒23Bを地中に差し込むと共に、接続器具23のフック23Aを第1の電線2に引っ掛けて第1の電線2を接地する。その結果、リレーの巻線53は励磁され、リレーのB接点54は開くので、電圧発生器56には電源60の電圧が印加されなくなり、電圧の発生は停止する。【選択図】図1