Re: anti-tie down code
While there are some exceptions, you generally cannot use a standard PLC for any safety function. You can use special safety rated PLCs for these functions.
Having said that, a lot of what people refer to as "safety" functions are really not safety issues as OSHA defines them, but are really interlocks to protect the equipment from damage, rather than saftey features to protect people from injury.
You need to do a proper analysis first.