Yes, you're correct, R4 goes to IC pin #5.
Thanks for clarifying that about the triacs, I already suspected that because I could see that they're connected either to a relay and/or the pcb fingers where the rest of the machine connects. And I also knew that the machine wouldn't start any program first (fits with triac/relay failure I guess), it was only after some retries to start it and leaving it on for some hours that the pcb died completely. Also I have fixed a few machine boards by replacing resistors and stuff like that, but on this one I was afraid to just do that because I saw damage on different pcb parts.
I guess I'll start by replacing R4 and test the board without connecting any peripheral hardware.
I don't think I'll find those triacs on stock on any shop on my city, would it be any problem in removing them from the pcb and just test the board for the DC part?
Thanks for the help, you've been very helpful.