The PLC's input cannot be connected directly to the M-series PLC inputs. You need to use a chip such as ULN2003A as an interface to convert TTL level inputs to NPN input that the PLC accepts.
However, on the expansion board EXP4040 there are 16 channel of HCMOS input but is reverse logic. i.e. 5V = OFF and 0V = ON. The specification of these inputs are the same as standard HCOMS ICs.