also need to make sure that signal polarity is same on both sides - PLC and KRC.
if one is using "NPN" and other "PNP" this will not work without some workaround like interposing relays or equivalent...
and regardless of that you still want to make sure to check if things are galvanically isolated or not
How can I find out if the KRC is NPN or PNP?