To clarify the tissue responsible for a biological function, that function can be experimentally perturbed by an external stimulus, such as radiation. Radiation can be precisely and finely administered and any subsequent change in function examined. To investigate the involvement of the central nervous system (CNS) in Caenorhabditis elegans’ locomotion, we irradiated a limited 20-µm-diameter area of the CNS with a single dose and evaluated the resulting effects on motility. However, whether irradiated area (beam size)-dependent or dose-dependent effects on motility occur via targeted irradiation remain unknown. In the present study, we examined the irradiated area- and dose-dependent effects of CNS-targeted irradiation on the motility of C. elegans using a collimating microbeam system and confirmed the involvement of the CNS and body-wall muscle cells around the CNS in motility. After CNS-targeted microbeam irradiation, C. elegans’ motility was assayed. The results demonstrated a dose-dependent effect of CNS-targeted irradiation on motility reflecting direct effects on the irradiated CNS. In addition, when irradiated with 1000-Gy irradiation, irradiated area (beam size)-dependent effects were observed. This method has two technical advantages: Performing a series of on-chip imaging analyses before and after irradiation and targeted irradiation using a distinct ion-beam size.