There a couple of Possibilities here if you are using a PLC like Allen Bradley, Siemens or Omron etc that has a Safety module facility is one way to go, alternatively if the safety isn't complex just have a smart Safety relay like PilZ make or dedicated Safety PLC handle all the safety with the number crunching in the main PLC. All the Main PLC needs is usually some simple IO info to know which zones are on or off. You need to also consider redundancy as using a $8k Saftey Wizz bang PLC might not be easy to replace in a hurry if it goes down compared to $5k PLC & $4k Safety Controller. Also consider your software costs as you pay extra to get Safety Ladder capability on some brands. Also consider SCADA read/write access if relevant to both PLC & Controller
We've had a Siemens 319F S7 PLC with 8 zones of safety IO in the Rack on one production line, the 319F is about 10x faster than the 315F we replaced and has identical specs to a non-safety 319. We also have an Omron running parallel to a Pilz Safety PLC on another line with 11 zones of Safety and I prefer the later myself. But mainly because high end Siemens stuff is hard to get in Australia. And Siemens is such a pain to work with compared to Omron & Mitsubishi.
The Pilz guy seling us the Safety PLC skyped on how fast it was and what it could do etc, but when we read him the specs of the main PLC we were using the Safety PLC was way under spec to handle the number crunching, encoders & VSD positioning we desired. The top line Pilz was not in the same league as a high end Omron or Siemens or AB, but it depends on what you want also bearing in mind dedicated safety PLC's require learning their own language quirks.