Unless its been turned off with ForScan the BCM will remember your fog lights last setting when you turned on your headlamps with the ignition on.
Turn on the fogs while the headlamps are on and the ignition is running and they'll turn on every time the headlamps turn on when the ignition is on. They'll flip back to off if someone turns them off while the ignition is on.
Turn on the fogs while the headlamps are on and the ignition is running and they'll turn on every time the headlamps turn on when the ignition is on. They'll flip back to off if someone turns them off while the ignition is on.