The dual-mode optical lens comprises a positive lens, a negative lens, a first turning mirror, a second turning mirror, a third turning mirror, a fourth turning mirror, an optical sensor and a
machine shell, a linear sliding table is fixedly installed in the
machine shell, and a moving part of the linear sliding table is in transmission connection with an installation frame; a second
light hole is formed in one side of the top end of the mounting frame, a
first light hole is formed in the bottom end of the other side of the mounting frame, the positive lens, the negative lens and the second
light hole are located on the same horizontal line, and the
first light hole and the light sensor are located on the same horizontal line; through the combination of the negative lens and the positive lens, a long
focal length is realized under a relatively short
optical path length, a more compact distance is realized through the two small-incidence-angle plane turning mirrors, and the two plane reflecting mirrors are combined and inserted into an
optical path between the positive lens and the negative lens, so that light rays do not pass through the negative lens, and the
optical path is more compact. And a relative small
focal length light path corresponding to the positive lens directly reaches the sensor.