Conventional industrial microgrids (IMGs) consist of factories with distributed energy resources (DERs) and electric loads that rely on combined heat and power (CHP) systems while the developing IMGs are expected to also include renewable DERs and plug-in electric vehicles (PEVs) with different vehicle ratings and charging characteristics. This paper presents an electricity and heat generation scheduling method coordinated with PEV charging in an IMG considering photovoltaic (PV) generation systems coupled with PV storages. The proposed method is based on dynamic optimal power flow (DOPF) over a 24-hour period and includes security-constrained optimal power flow (SCOPF), IMG's factories constraints, PV storage constraints and PEVs dynamic charging constraints. It will utilize the generators waste heat to fulfill thermal requirements while considering the status of renewable DERs to decrease the overall cost of IMGs. To demonstrate the effectiveness of the proposed method, detailed simulation results are presented and analyzed for an 18-bus IMG consisting of 12 factories and 6 types of PEVs without/with PV generation systems operating in grid-connected and stand-alone modes. The main contribution is including PEVs with dynamic constraints that have changed the nature of scheduling formulation from a simple hourly OPF to a dynamic OPF.