SAM 2017.9.5 has an option batt_pv_choice to set the priority for PV power for manual dispatch that is not available in later versions of SAM:

To address user requests like https://sam.nrel.gov/forum/forum-general/3492 and to match REopt output for PV-only charging, we should consider restoring this feature. (Discharge to grid for BTM #338 is higher priority.)
The source code for 2017.1.17 (pre-GitHub) includes the following:

Tracing through the myriad of name changes through the arguments to each of the dispatch algorithms, shows:
batt_pv_choice (int) -> (bool) pv_dispatch as argument to manual_dispatch_t then to int in dispatch_t based class assigned to private class member (int) _pv_dispatch_to_battery_first with usage:

and usage:

SAM 2017.9.5 has an option
batt_pv_choiceto set the priority for PV power for manual dispatch that is not available in later versions of SAM:To address user requests like https://sam.nrel.gov/forum/forum-general/3492 and to match REopt output for PV-only charging, we should consider restoring this feature. (Discharge to grid for BTM #338 is higher priority.)
The source code for 2017.1.17 (pre-GitHub) includes the following:
Tracing through the myriad of name changes through the arguments to each of the dispatch algorithms, shows:
batt_pv_choice (int) -> (bool) pv_dispatchas argument tomanual_dispatch_tthen tointindispatch_tbased class assigned to private class member(int) _pv_dispatch_to_battery_firstwith usage:and usage: