1680s; from machine (n.) + -ery. Originally theatrical, "devices for creating stage effects" (which also was a sense of Greek mekhane); meaning "machines collectively" is attested from 1731. Middle English had machinament "a contrivance" (early 15c.).[machinery etymology, machinery origin, 英语词源]