Not sure I understand what you are doing Code below

Code:
M106 P0 S255 sets the fan to 100% 
M106 P0 S127 sets the fan to 50%
Like wise for second fan
Code:
M106 P1 S255 sets the second fan to 100% 
M106 P1 S127 sets the second fan to 50%